Page 1 of 1

omsuspend and backups

Posted: Wed Mar 15, 2006 6:49 pm
by zach
I am attempting to write a script to automate my scalix backups with LVM snapshots and rsync. Here's my problem: If I run 'omsuspend -s 299' from a command line, the process will hang for 299 seconds. Therefore, if I put this at the top of my script, the code won't finish until omsuspend times out. Can this command be run in the background, so my script can proceed? Or is there a better way to this?

Posted: Wed Mar 15, 2006 7:27 pm
by mikevl
Hey

You are very close. You need to add to the suspend command as

/opt/scalix/bin/omsuspend -s 299 &

This will give you back programcontrol / script control.

Best of luck

Mike v

Posted: Wed Mar 15, 2006 8:01 pm
by zach
Thanks for the assistance...
Any chance there is a similar solution to automatically suppress, or answer yes, to the lvremove confirmation at the end of the script?

Posted: Thu Mar 16, 2006 9:45 am
by zach
answered my own question...

lvremove -f /dev/..

Posted: Thu Mar 16, 2006 10:15 am
by ScalixSupport
Good on ya!

Cheers mate,
Don