Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Smitro on October 21, 2008, 11:17:58 PM

Title: Manually kick off the Standard Backup
Post by: Smitro on October 21, 2008, 11:17:58 PM
Hi all,

I've started using the new backup option that is now included with SME, it was known as backup to dar. Last night I forgot to leave the machine on that my SME box backs up to, so I missed a backup. Is there a command that will manually kick it off?
Title: Re: Manually kick off the Standard Backup
Post by: David Harper on October 22, 2008, 09:00:25 AM
/sbin/e-smith/do_backupwk should do the trick.
Title: Re: Manually kick off the Standard Backup
Post by: Smitro on October 22, 2008, 09:33:56 AM
Cool, that looks like it's done/doing the trick. It doesn't return a prompt, so does that mean I have to leave the session open until it's done?

Is there a way to background this task for future?
Title: Re: Manually kick off the Standard Backup
Post by: David Harper on October 22, 2008, 09:55:43 AM
No, it's a child process, so even if you background it (with &) when you close the session it will terminate abnormally.
Title: Re: Manually kick off the Standard Backup
Post by: Smitro on October 22, 2008, 09:58:35 AM
Fair enough. Thanks.
Title: Re: Manually kick off the Standard Backup
Post by: CharlieBrady on October 22, 2008, 04:12:22 PM
Is there a way to background this task for future?

nohup name/of/command
Title: Re: Manually kick off the Standard Backup
Post by: Smitro on November 23, 2008, 10:39:31 PM
This doesn't work, it still leaves you without a prompt, and if you close it, it will end the backup.
Title: Re: Manually kick off the Standard Backup
Post by: thomasch on November 24, 2008, 03:34:56 AM
try add an ampersand trailing :

nohup /sbin/e-smith/do_backupwk &

thomas
Title: Re: Manually kick off the Standard Backup
Post by: cactus on November 24, 2008, 12:43:29 PM
Have a look at the screen utility: http://www.redhatmagazine.com/2007/09/27/a-guide-to-gnu-screen/