Jason --

...and then Jason Helfman said...
% 
% How would I setup a crontab entry to zip every 15 days of the month...

Well, for crontab instructions, there's the crontab manual page...


% 
% Some have 30, some 28, some 31...? 

Do you really mean every fifteen, so you'd do your backing and zipping on
1/1, 1/16, 1/31, 2/15, 3/2 (non-leap), 3/17, ...

Or do you just mean the 15th and the last?


% 
% And I want the dates to correspond to the actual date of the archive...

That sounds like a shell scripting, or perl, or whatever, question.
Still easy.



% 
% Thanks very much...
% 
% Here is my crontab entry.
% 
% 1 0 1 1-12 * $HOME/backup-mail |mail deklown -s "Cron: Mail Backed Up


Looks like you're backing up every first of the month in the first 12
months (hmmm, that 1-12 could become * happily).  Keep your life simple;
back up on the 1st and 16th with

  1 0 1,16 * * $HOME/backup-mail | mail deklown -s "Cron: Mail Backed Up"

instead of messing with those "is today (or tomorrow) the last day?"
questions...  Besides, you can then use mutt's limiting to pull out only
the stuff thru yesterday (15th/last) to drop into your archive.

If you really wanted to have the "last day" functionality, I have both
shell and perl scripts for that sort of thing that I could share.


:-D
-- 
David T-G                       * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]      * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/        Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*

PGP signature

Reply via email to