Snapshot pragmatically back up and restore via api

Hello there,

I am developing some news sites for a client. He use rackspace cloud sites. Although you can set the time out up to 900 secs it will always show an error msg at 30 secs and the script will continue in the background.

After knowing those facts , I wan a solution for my following issue :

I want to pragmatically to backup and restore via snapshot plugin. I know I can use schedule to backup ,but I am building a platform for the network ,so I want to trigger the backup manually. Triggering the restore option is the big issue now and has higher priority. Is this possible ?! and how ?!