Re: [BackupPC-users] BackupPC schedule to skip Sat Sunday from running any backups

2013-11-20 Thread Prem


Hi,

I would like to skip the weekends from any backups to run. How do I set this in 
the blackout or other options?

I tried 0  0 in the start/end of the blackout option but it did work.

Appreciate the assistance.--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
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/


Re: [BackupPC-users] save backuppc backups on a ultrium tape

2013-11-20 Thread Holger Parplies
Hi,

i...@newoffice.it wrote on 2013-11-18 16:04:25 +0100 [Re: [BackupPC-users] save 
backuppc backups on a ultrium tape]:
 [...]
 i've found this script

this would have been a good place to mention where you found it.

 [...]
 DATADIR=/var/lib/backuppc/pc
 BackupPCDATADIR=/dev/st0

This doesn't make sense with respect to the usage of these variables below.
DATADIR would seem to be meant to point to some temporary space available for
this script to put large amounts of data into (tars of the last backup of all
hosts).
BackupPCDATADIR would seem to be meant to be $TopDir/pc - in the case of
Debian and Ubuntu package installs /var/lib/backuppc/pc (what DATADIR is
erroneously set to).

 # Uncomment to remove old backups
 #echo Removing old backups.
 #find $DATADIR/ -type f | while read foo; do
 # rm -fv $foo
 #done

Err, well, yes, with the correct settings of the variables. As it is here, it
would remove all BackupPC backups - not likely something you actually want to
do.

 echo Checking dump directories.
 ls $BackupPCDATADIR | grep -v archive | while read foo; do
 mkdir $DATADIR/$foo 2/dev/null
 chmod 777 $DATADIR/$foo 2/dev/null

I read chmod 777 as I don't know what I'm doing, but something didn't work,
and now it apparently does for whatever reasons.

 done
 
 ls $BackupPCDATADIR | grep -v archive | while read host; do
 echo Dumping $host `date`

Ah, we're at eight dots now. Five seemed plenty.

 $BackupPCBIN/BackupPC_tarCreate -t -h $host -n -1 -s \* .  
 $DATADIR/$host/$host.`date +%Y%m%W`.tar

This is the one interesting line. It would seem to be correct, though your
naming preferences may vary. In particular, %W won't be very descriptive if
you run this more than once a week ;-).

 pbzip2 -p7 $DATADIR/$host/$host.`date +%Y%m%W`.tar

pbzip2 is an interesting idea. Thank you for that. You should probably adapt
the '-p7' switch to what suits your system, though.
There may or may not be reasons for creating an intermediate copy of the tar
file instead of just piping directly into pbzip2. Again, you should see what
fits your system rather than copying what fitted someone else's.

 echo Done! `date`
 done
 exit 0

All in all, my coding style preferences differ, but it would seem to work
(correct variable settings assumed!). What it gives you is compressed tar
archives of the last backup of each host in a directory somewhere (or rather
a directory of directories). Nothing is written to tape anywhere, though you
might just need to put it somewhere your tape system is configured to pick it
up. No synchronization though (unless this is *called* by the tape system as a
pre-backup command). No logic to decide whether any backup has actually
completed since the last call (i.e. if you disable backups for a host, this
script will continue creating a tar of the same last backup of this host; if a
host wasn't reachable today, you'll just get a new copy of yesterday's
backup).

Hope that helps.

Regards,
Holger

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
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/


Re: [BackupPC-users] BackupPC schedule to skip Sat Sunday from running any backups

2013-11-20 Thread Holger Parplies
Hi,

Prem wrote on 2013-11-19 20:49:40 -0800 [Re: [BackupPC-users] BackupPC schedule 
to skip Sat  Sunday from running any backups]:
 Actually I tried various options but it somehow runs :(

$Conf {BlackoutGoodCnt} ? You have, of course, read the comments in config.pl
about how BlackoutGoodCnt, BlackoutBadPingLimit and BlackoutPeriods work
together ...

 Tried 0, 24;  24, 24;  23:59, 0; etc
 
 The default as per your suggestion would be 0, 0, [...]

That doesn't make much sense. The code checking the blackouts is bound to be
implemented in terms of = and = (possibly without the =). Explicitly
*not* looking at the code, I would expect any of the following to work

0, 24
-1, 25
-1000, 1000

(of which only the first makes any sense). A range with start == end would in
any case be ambiguous. Do you mean 0 minutes or 24 hours?

Regards,
Holger

--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
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/


Re: [BackupPC-users] BackupPC schedule to skip Sat Sunday from running any backups

2013-11-20 Thread Prem
Hi Holger,

Yes 0 to 24 hrs is what I meant. What actual settings i need to do so that it 
does not backup on saturday and sunday?



 From: Holger Parplies wb...@parplies.de
To: Prem squirr...@yahoo.com; General list for user discussion, questions 
and support backuppc-users@lists.sourceforge.net 
Cc: Sharuzzaman Ahmat Raslan sharuzza...@gmail.com 
Sent: Thursday, November 21, 2013 2:46 AM
Subject: Re: [BackupPC-users] BackupPC schedule to skip Sat  Sunday from 
running any backups
 

Hi,

Prem wrote on 2013-11-19 20:49:40 -0800 [Re: [BackupPC-users] BackupPC schedule 
to skip Sat  Sunday from running any backups]:
 Actually I tried various options but it somehow runs :(

$Conf {BlackoutGoodCnt} ? You have, of course, read the comments in config.pl
about how BlackoutGoodCnt, BlackoutBadPingLimit and BlackoutPeriods work
together ...

 Tried 0, 24;  24, 24;  23:59, 0; etc
 
 The default as per your suggestion would be 0, 0, [...]

That doesn't make much sense. The code checking the blackouts is bound to be
implemented in terms of = and = (possibly without the =). Explicitly
*not* looking at the code, I would expect any of the following to work


    0, 24
    -1, 25
    -1000, 1000

(of which only the first makes any sense). A range with start == end would in
any case be ambiguous. Do you mean 0 minutes or 24 hours?

Regards,
Holger--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
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/


Re: [BackupPC-users] BackupPC schedule to skip Sat Sunday from running any backups

2013-11-20 Thread Prem
Hi Sharuzzaman ,

What value do i put for the hourBegin  hourEnd then?



 From: Sharuzzaman Ahmat Raslan sharuzza...@gmail.com
To: Prem squirr...@yahoo.com; General list for user discussion, questions 
and support backuppc-users@lists.sourceforge.net 
Sent: Wednesday, November 20, 2013 11:53 AM
Subject: Re: [BackupPC-users] BackupPC schedule to skip Sat  Sunday from 
running any backups
 


Hi Prem,

Click Edit Config, then click Schedule

Set the blackout period weekdays to 0, 6

Click the link at BlackoutPeriods to learn more




On Wed, Nov 20, 2013 at 11:31 AM, Prem squirr...@yahoo.com wrote:

Hi,


I would like to skip the weekends from any backups to run. How do I set this 
in the blackout or other options?


I tried 0  0 in the start/end of the blackout option but it did work.


Appreciate the assistance.
--
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk
___
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/




-- 
Sharuzzaman Ahmat Raslan --
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311iu=/4140/ostg.clktrk___
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/