On Wed, Dec 08, 2010 at 05:14:51PM +0000, Keith Edmunds wrote:
> I need to be able to stop backups running during the working day.
> I'm aware of BlackoutPeriods and, mostly, that manages to achieve
> what I need. However, there are times when, for whatever reason,
> backups overrun. What I want to do is have a cron job that can run
> at the start of the day and:
> 
>  - list any running backups

sudo -u backuppc BackupPC_serverMesg status queues 

I also append: | sed 's/,/,\n/g' | less

>  - stop them

sudo -u backuppc BackupPC_serverMesg stop [hostname]

>  - notify by email of the actions taken

mailx

See /usr/local/bin/BackupPC, the Main_Check_Client_Messages
subroutine, for all the commands it'll take.

-Robin

-- 
http://singinst.org/ :  Our last, best hope for a fantastic future.
Lojban (http://www.lojban.org/): The language in which "this parrot
is dead" is "ti poi spitaki cu morsi", but "this sentence is false"
is "na nei".   My personal page: http://www.digitalkingdom.org/rlp/

------------------------------------------------------------------------------
This SF Dev2Dev email is sponsored by:

WikiLeaks The End of the Free Internet
http://p.sf.net/sfu/therealnews-com
_______________________________________________
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Reply via email to