omsuspend and backups

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

zach
Posts: 18
Joined: Mon Mar 13, 2006 12:11 pm

omsuspend and backups

Postby zach » Wed Mar 15, 2006 6:49 pm

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?

mikevl
Scalix Star
Scalix Star
Posts: 596
Joined: Mon Feb 02, 2004 8:32 pm
Location: New Zealand

Postby mikevl » Wed Mar 15, 2006 7:27 pm

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

zach
Posts: 18
Joined: Mon Mar 13, 2006 12:11 pm

Postby zach » Wed Mar 15, 2006 8:01 pm

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?

zach
Posts: 18
Joined: Mon Mar 13, 2006 12:11 pm

Postby zach » Thu Mar 16, 2006 9:45 am

answered my own question...

lvremove -f /dev/..

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Mar 16, 2006 10:15 am

Good on ya!

Cheers mate,
Don


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 16 guests

cron