Re: [Bacula-users] How to force a full backup?

2009-03-06 Thread Foo
On Thu, 05 Mar 2009 21:49:41 +0100, Kevin Keane subscript...@kkeane.com  
wrote:

 Funny you say that. Yes, your version is shorted and will work. I
 actually used to have it that way.

 The reason I changed to the longer version is that now the schedule file
 is generated by a script, it's basically a simple for loop that
 generates it. One thing this lets me do is easily generate different
 scheduled so that the full backups are staggered for different clients,
 and the differentials always happen 7 days after the fulls.

Hehe, I think lots of people reinvent that wheel, I also wrote a little  
bash oneliner to stagger schedules over days/weeks:

i=0; for srv in $(cat /tmp/servers.txt); do let i++; let j=(i-1)/7+1; let  
k=($j-1)*7; let dayno=$i-$k; let p=($j-1)/4; let q=$p*4; let weekno=$j-$q;  
let tmp=8-$dayno; mainday=$(date +%a --date=$tmp day ago | sed -r  
's/(.*)/\L\1\E/'); let tmp=7-$dayno; firstday=$(date +%a --date=$tmp day  
ago | sed -r 's/(.*)/\L\1\E/'); let tmp=9-$dayno; lastday=$(date +%a  
--date=$tmp day ago | sed -r 's/(.*)/\L\1\E/'); case $weekno in 1)  
fullweek=1st; diffweek=2nd-5th;; 2) fullweek=2nd;  
diffweek=3rd-1st;; 3) fullweek=3rd; diffweek=4th-2nd;; 4)  
fullweek=4th; diffweek=5th-3rd;; esac; sed -i s+HOSTNAME+$srv+;s+Full  
1st fri+Full $fullweek $mainday+;s+2nd-5th fri+$diffweek  
$mainday+;s+sat-thu+$firstday-$lastday+ schedules/$srv.schedule; done

/tmp/servers.txt has a hostname on each line, and I include schedules  
using the @/etc/bacula/schedules/hostname.schedule format in  
bacula-dir.conf. The above expects existing dummy schedule files  
containing 'HOSTNAME', 'Full 1st fri' etc. strings, see the sed stuff,  
this can be created easily with another for loop copying a sample file.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to force a full backup?

2009-03-05 Thread John Lockard
As a side note, I'm pretty sure you could shorten this definition to:

Schedule {
   Name = Schedule-apache
   Run = Level=Full Storage=Disk3-apache on 1,16 at 19:05
   Run = Level=Differential Storage=Disk3-apache on 8,23 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 2-7,9-15,17-22,24-31 at 19:05
 }


On Tue, Mar 03, 2009 at 01:15:18AM -0800, Kevin Keane wrote:
 I have a schedule that dictates a full backup on the 1st and 16th of the 
 month, differentials on the 8th and 23rd, and incrementals the remaining 
 days.
 
 Yesterday, the full backup for one of my clients failed due to a lost 
 network connection. I notice that bacula now blindly does an incremental 
 backup anyway. How can I get bacula to automatically retry a full backup 
 on the 2nd of the month if it failed on the 1st?
 
 Thanks!
 
 Here is my schedule resource:
 
 Schedule {
   Name = Schedule-apache
   Run = Level=Full Storage=Disk3-apache on 1 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 2 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 3 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 4 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 5 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 6 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 7 at 19:05
   Run = Level=Differential Storage=Disk3-apache on 8 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 9 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 10 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 11 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 12 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 13 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 14 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 15 at 19:05
   Run = Level=Full Storage=Disk2-apache on 16 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 17 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 18 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 19 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 20 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 21 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 22 at 19:05
   Run = Level=Differential Storage=Disk2-apache on 23 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 24 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 25 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 26 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 27 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 28 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 29 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 30 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 31 at 19:05
 }
 
 -- 
 Kevin Keane
 Owner
 The NetTech
 Find the Uncommon: Expert Solutions for a Network You Never Have to Think 
 About
 
 Office: 866-642-7116
 http://www.4nettech.com
 
 This e-mail and attachments, if any, may contain confidential and/or 
 proprietary information. Please be advised that the unauthorized use or 
 disclosure of the information is strictly prohibited. The information herein 
 is intended only for use by the intended recipient(s) named above. If you 
 have received this transmission in error, please notify the sender 
 immediately and permanently delete the e-mail and any copies, printouts or 
 attachments thereof.
 
 
 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 

-- 
If you take out the killings, Washington actually
 has a very, very low crime rate. - Marion Barry
---
 John M. Lockard |  U of Michigan - School of Information
 Unix and Security Admin |  1214 SI North - 1075 Beal Ave.
  jlock...@umich.edu |Ann Arbor, MI  48109-2112
 www.umich.edu/~jlockard | 734-615-8776 | 734-647-8045 FAX
---

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

Re: [Bacula-users] How to force a full backup?

2009-03-05 Thread Kevin Keane
Funny you say that. Yes, your version is shorted and will work. I 
actually used to have it that way.

The reason I changed to the longer version is that now the schedule file 
is generated by a script, it's basically a simple for loop that 
generates it. One thing this lets me do is easily generate different 
scheduled so that the full backups are staggered for different clients, 
and the differentials always happen 7 days after the fulls.

John Lockard wrote:
 As a side note, I'm pretty sure you could shorten this definition to:

 Schedule {
Name = Schedule-apache
Run = Level=Full Storage=Disk3-apache on 1,16 at 19:05
Run = Level=Differential Storage=Disk3-apache on 8,23 at 19:05
Run = Level=Incremental Storage=Disk3-apache on 2-7,9-15,17-22,24-31 at 
 19:05
  }


 On Tue, Mar 03, 2009 at 01:15:18AM -0800, Kevin Keane wrote:
   
 I have a schedule that dictates a full backup on the 1st and 16th of the 
 month, differentials on the 8th and 23rd, and incrementals the remaining 
 days.

 Yesterday, the full backup for one of my clients failed due to a lost 
 network connection. I notice that bacula now blindly does an incremental 
 backup anyway. How can I get bacula to automatically retry a full backup 
 on the 2nd of the month if it failed on the 1st?

 Thanks!

 Here is my schedule resource:

 Schedule {
   Name = Schedule-apache
   Run = Level=Full Storage=Disk3-apache on 1 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 2 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 3 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 4 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 5 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 6 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 7 at 19:05
   Run = Level=Differential Storage=Disk3-apache on 8 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 9 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 10 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 11 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 12 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 13 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 14 at 19:05
   Run = Level=Incremental Storage=Disk3-apache on 15 at 19:05
   Run = Level=Full Storage=Disk2-apache on 16 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 17 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 18 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 19 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 20 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 21 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 22 at 19:05
   Run = Level=Differential Storage=Disk2-apache on 23 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 24 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 25 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 26 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 27 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 28 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 29 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 30 at 19:05
   Run = Level=Incremental Storage=Disk2-apache on 31 at 19:05
 }

 -- 
 Kevin Keane
 Owner
 The NetTech
 Find the Uncommon: Expert Solutions for a Network You Never Have to Think 
 About

 Office: 866-642-7116
 http://www.4nettech.com

 This e-mail and attachments, if any, may contain confidential and/or 
 proprietary information. Please be advised that the unauthorized use or 
 disclosure of the information is strictly prohibited. The information herein 
 is intended only for use by the intended recipient(s) named above. If you 
 have received this transmission in error, please notify the sender 
 immediately and permanently delete the e-mail and any copies, printouts or 
 attachments thereof.


 --
 Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
 -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
 -Strategies to boost innovation and cut costs with open source participation
 -Receive a $600 discount off the registration fee with the source code: SFAD
 http://p.sf.net/sfu/XcvMzF8H
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-user


-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you 

[Bacula-users] How to force a full backup?

2009-03-03 Thread Kevin Keane
I have a schedule that dictates a full backup on the 1st and 16th of the 
month, differentials on the 8th and 23rd, and incrementals the remaining 
days.

Yesterday, the full backup for one of my clients failed due to a lost 
network connection. I notice that bacula now blindly does an incremental 
backup anyway. How can I get bacula to automatically retry a full backup 
on the 2nd of the month if it failed on the 1st?

Thanks!

Here is my schedule resource:

Schedule {
  Name = Schedule-apache
  Run = Level=Full Storage=Disk3-apache on 1 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 2 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 3 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 4 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 5 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 6 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 7 at 19:05
  Run = Level=Differential Storage=Disk3-apache on 8 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 9 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 10 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 11 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 12 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 13 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 14 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 15 at 19:05
  Run = Level=Full Storage=Disk2-apache on 16 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 17 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 18 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 19 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 20 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 21 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 22 at 19:05
  Run = Level=Differential Storage=Disk2-apache on 23 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 24 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 25 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 26 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 27 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 28 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 29 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 30 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 31 at 19:05
}

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] How to force a full backup?

2009-03-03 Thread Kevin Keane
I have a schedule that dictates a full backup on the 1st and 16th of the 
month, differentials on the 8th and 23rd, and incrementals the remaining 
days.

Yesterday, the full backup for one of my clients failed due to a lost 
network connection. I notice that bacula now blindly does an incremental 
backup anyway. How can I get bacula to automatically retry a full backup 
on the 2nd of the month if it failed on the 1st?

Thanks!

Here is my schedule resource:

Schedule {
  Name = Schedule-apache
  Run = Level=Full Storage=Disk3-apache on 1 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 2 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 3 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 4 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 5 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 6 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 7 at 19:05
  Run = Level=Differential Storage=Disk3-apache on 8 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 9 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 10 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 11 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 12 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 13 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 14 at 19:05
  Run = Level=Incremental Storage=Disk3-apache on 15 at 19:05
  Run = Level=Full Storage=Disk2-apache on 16 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 17 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 18 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 19 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 20 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 21 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 22 at 19:05
  Run = Level=Differential Storage=Disk2-apache on 23 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 24 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 25 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 26 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 27 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 28 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 29 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 30 at 19:05
  Run = Level=Incremental Storage=Disk2-apache on 31 at 19:05
}

-- 
Kevin Keane
Owner
The NetTech
Find the Uncommon: Expert Solutions for a Network You Never Have to Think About

Office: 866-642-7116
http://www.4nettech.com

This e-mail and attachments, if any, may contain confidential and/or 
proprietary information. Please be advised that the unauthorized use or 
disclosure of the information is strictly prohibited. The information herein is 
intended only for use by the intended recipient(s) named above. If you have 
received this transmission in error, please notify the sender immediately and 
permanently delete the e-mail and any copies, printouts or attachments thereof.


--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users