in reply to Whats a good process for archiving cron processed files?

(If possible) instead of generating YYYYMMDD-named files, if you just generate files like /home/reports/ftp/WSB/someoutput.txt then you can simply have logrotate deal with them -- it automagically takes care of renaming them daily (or whenever you want) including compression and deleting ones that are too old (which you define). Your logrotate.conf would just be something like (see manpage for details, especially about the wildcard):
/home/reports/ftp/WSB/* { rotate 9 compress daily olddir /home/reports/ftp/WSB/old }

Replies are listed 'Best First'.
Re^2: Whats a good process for archiving cron processed files?
by jimbus (Friar) on Aug 19, 2005 at 14:14 UTC
    I have a requirement to keep a years worth incase we have to go back and prove something. Using a date formatted name keeps me sane :).
    Never moon a werewolf!