Re: [Bacula-users] Day before schedule
On 3 Dec 2004 at 9:49, Karl Cunningham wrote: Does anyone have an idea how to do a schedule for the *day before* the first Saturday of the month? We do a full backup on the first Saturday of the month, but want the incremental backups the day before to start earlier than other Friday jobs, so they're sure to be done in time to change the media before we go home that day. Usually that would fall on the first Friday of the month, sometimes the fifth, once in a great while the fourth. If there is no way to do this with the existing system, one thing I think would work is a timeoffset=nnn as part of a schedule resource. nnn would be an integer number of minutes that would add to the time that is otherwise specified in the schedule. Negative values of nnn would subtract time. Something like this: Run = timeoffset=-1440 dec first Saturday at 16:01 Ideas? Thoughts? What about this: Schedule a job for every Friday. Include a RunBeforeJob option in that job. In that script, check to see if tomorrow is the first Saturday of the month. If it is, proceed. If it is not, error out and the backup job will not run. If you don't like error'd out jobs, set up a cron job to do the same as above, but instead of proceeding, it invokes bconsole, and runs the job. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Day before schedule
On 5/3/2006 6:36 AM, Dan Langille wrote: On 3 Dec 2004 at 9:49, Karl Cunningham wrote: Does anyone have an idea how to do a schedule for the *day before* the first Saturday of the month? We do a full backup on the first Saturday of the month, but want the incremental backups the day before to start earlier than other Friday jobs, so they're sure to be done in time to change the media before we go home that day. Usually that would fall on the first Friday of the month, sometimes the fifth, once in a great while the fourth. If there is no way to do this with the existing system, one thing I think would work is a timeoffset=nnn as part of a schedule resource. nnn would be an integer number of minutes that would add to the time that is otherwise specified in the schedule. Negative values of nnn would subtract time. Something like this: Run = timeoffset=-1440 dec first Saturday at 16:01 Ideas? Thoughts? What about this: Schedule a job for every Friday. Include a RunBeforeJob option in that job. In that script, check to see if tomorrow is the first Saturday of the month. If it is, proceed. If it is not, error out and the backup job will not run. If you don't like error'd out jobs, set up a cron job to do the same as above, but instead of proceeding, it invokes bconsole, and runs the job. Dan -- Thanks for the suggestion. I like this. We've mostly gotten around the problem in other ways but not always the ideal. Your idea could probably be done with only a small shell script on the server. Thanks again. Karl Cunningham --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Day before schedule
On 3 May 2006 at 9:07, Karl Cunningham wrote: On 5/3/2006 6:36 AM, Dan Langille wrote: On 3 Dec 2004 at 9:49, Karl Cunningham wrote: Does anyone have an idea how to do a schedule for the *day before* the first Saturday of the month? We do a full backup on the first Saturday of the month, but want the incremental backups the day before to start earlier than other Friday jobs, so they're sure to be done in time to change the media before we go home that day. Usually that would fall on the first Friday of the month, sometimes the fifth, once in a great while the fourth. If there is no way to do this with the existing system, one thing I think would work is a timeoffset=nnn as part of a schedule resource. nnn would be an integer number of minutes that would add to the time that is otherwise specified in the schedule. Negative values of nnn would subtract time. Something like this: Run = timeoffset=-1440 dec first Saturday at 16:01 Ideas? Thoughts? What about this: Schedule a job for every Friday. Include a RunBeforeJob option in that job. In that script, check to see if tomorrow is the first Saturday of the month. If it is, proceed. If it is not, error out and the backup job will not run. If you don't like error'd out jobs, set up a cron job to do the same as above, but instead of proceeding, it invokes bconsole, and runs the job. Dan -- Thanks for the suggestion. I like this. We've mostly gotten around the problem in other ways but not always the ideal. Your idea could probably be done with only a small shell script on the server. If it works, please post the script for the next person. ;) -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Day before schedule
Hi, On 5/3/2006 6:35 PM, Dan Langille wrote: On 3 May 2006 at 9:07, Karl Cunningham wrote: On 5/3/2006 6:36 AM, Dan Langille wrote: On 3 Dec 2004 at 9:49, Karl Cunningham wrote: Does anyone have an idea how to do a schedule for the *day before* the first Saturday of the month? We do a full backup on the first Saturday of the month, but want the incremental backups the day before to start earlier than other Friday jobs, so they're sure to be done in time to change the media before we go home that day. Usually that would fall on the first Friday of the month, sometimes the fifth, once in a great while the fourth. If there is no way to do this with the existing system, one thing I think would work is a timeoffset=nnn as part of a schedule resource. nnn would be an integer number of minutes that would add to the time that is otherwise specified in the schedule. Negative values of nnn would subtract time. Something like this: Run = timeoffset=-1440 dec first Saturday at 16:01 Ideas? Thoughts? What about this: Schedule a job for every Friday. Include a RunBeforeJob option in that job. In that script, check to see if tomorrow is the first Saturday of the month. If it is, proceed. If it is not, error out and the backup job will not run. If you don't like error'd out jobs, set up a cron job to do the same as above, but instead of proceeding, it invokes bconsole, and runs the job. Dan -- Thanks for the suggestion. I like this. We've mostly gotten around the problem in other ways but not always the ideal. Your idea could probably be done with only a small shell script on the server. If it works, please post the script for the next person. ;) One suggestion: Have a look at http://www.biostat.wisc.edu/~annis/creations/period.py.html That site was pointed out to me related to Bacula, but currently I use period.py for my monitoring services only. Works fine, is really simple to use (even simpler for native English speakers I guess) and it's a good reason to start using python - some day Baculas events might become really interesting :-) Unfortunately, there's no 'Last[Sun-Sat]' in period.py, but someone more fluent in python than I might implement that... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users
Re: [Bacula-users] Day before schedule
On 4 May 2006 at 1:18, Arno Lehmann wrote: Unfortunately, there's no 'Last[Sun-Sat]' in period.py, but someone more fluent in python than I might implement that... One thing to consider: we all have access to databases. They might have something for First Saturday of the month. -- Dan Langille : Software Developer looking for work my resume: http://www.freebsddiary.org/dan_langille.php --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users