Hi, 29.06.2007 15:42,, Ryan Novosielski wrote:: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Someone MAY have written code to do this already, so you might not have > to write it... but if not, I recommend you do this a different way. I > used to conduct full backups on the closest workday to the 15th of the > month in the past. As this is hard to explain how we figure this out to > even a staff member, it was harder than that for Bacula and I realized > at some point that I really don't care. Second Tuesday has been more > than sufficient. I also find that the simpler the schedule, the better > it survives operator error or device failure, in case something happens > one of those days a backup is destined to run.
Really good advice... simpler is better, most of the times. Anyway, in case you really want your rather complicated schedule, I'd create that either per script, or even don't use the internal scheduling, but rather let a cron job start the jobs. You'd need the week number and decide if the week is an even or odd one, (beware at the years's end...) and the week day, so you can't do this with cron directly. But calling a script each day, which does the necessary calculation, would be possible. Arno > > Martin Drasar wrote: >> Hello everyone, >> could you please help me with writing schedule for this task... >> >> I want to have two parallel backup jobs. One will do backup on odd days >> and the other on even. Full backup every week, but divided into two jobs >> (i.e. every job is going to have full backup every 14 days) >> >> For illustration I provide this table: >> >> +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >> |sun|mon|tue|wed|thu|fri|sat|sun|mon|tue|wed|thu|fri|sat|sun| >> +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >> I | F | x | I | x | I | x | I | x | I | x | I | x | I | x | F | >> +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >> II| x | I | x | I | x | I | x | F | x | I | x | I | x | I | x | >> +---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+ >> >> F: Full backup >> I: Incremental backup >> x: No backup >> >> So far I have only come up with solutions that would require to write many >> lines of code into schedule definition and would made it hard to maintain >> in case of backup scheme change. >> >> Thanks >> >> Martin >> >> >> ------------------------------------------------------------------------- >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Bacula-users mailing list >> Bacula-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/bacula-users > > > - -- > ---- _ _ _ _ ___ _ _ _ > |Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III > |$&| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922) > \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630 > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFGhQw8mb+gadEcsb4RAlo1AKCz2syrIdgdFK22NXn4kBGXMHv2gQCgk3oi > 2qtjXgbPttLORrLmS01Ux/M= > =HTBf > -----END PGP SIGNATURE----- > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > Bacula-users mailing list > Bacula-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bacula-users -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users