BackupPC-users

Re: [BackupPC-users] How to stop starting new backup jobs?

2010-11-09 07:39:24
Subject: Re: [BackupPC-users] How to stop starting new backup jobs?
From: "Tyler J. Wagner" <tyler AT tolaris DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Tue, 09 Nov 2010 12:37:10 +0000
On Tue, 2010-11-09 at 12:41 +0100, Pavel Hofman wrote:
> Thanks a lot for your suggestion. In fact we use the PreDumpUserCmd to
> lock the backed-up machines to disable shutdown while the backup is in
> progress. You are right, it will work. Though IMHO it is an "unpretty"
> workaround :-) , especially because the PreDumpUserCmd does not support
> multiple commands and everything must but put to scripts instead.

You can put multiple command in. Here is mine, which sends a passive OS
dialog using kdialog (which works fine with Gnome too) to tell the users
that a backup is starting.:

$sshPath -q -x -l root $host su `/bin/echo $user | /bin/sed 's/@.*//'`
-c "/usr/bin/kdialog --display :0 --title \"BackupPC on backuppc.local\"
--passivepopup \"Beginning $type backup on $client  at `/bin/date +'%Y-%
m-%d %T %Z'`\""

If you can pipe, you can &&.

Regards,
Tyler

-- 
"An Englishman, even if he is alone, forms an orderly queue of one."
   -- George Mikes


------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/