BackupPC-users

Re: [BackupPC-users] Status and stop backup from command line

2010-12-08 19:20:33
Subject: Re: [BackupPC-users] Status and stop backup from command line
From: Robin Lee Powell <rlpowell AT digitalkingdom DOT org>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Wed, 8 Dec 2010 16:17:45 -0800
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 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/

<Prev in Thread] Current Thread [Next in Thread>