On Thu, 2007-07-19 at 09:30 -0400, Matt McCutchen wrote:
> On 7/19/07, Rick Romero <[EMAIL PROTECTED]> wrote:
> > /usr/bin/find /var/backup/* -mtime +30 -exec rm -rf {} \;
> >
> > Anything older than 30 days gets deleted from /var/backup/
> That's no good: it deletes individual files that happen to be older
> than 30 days from even yesterday's backup.  This is better:
> find /var/backup -maxdepth 1 -mtime +30 -exec rm -rf {} \;

Oh of course - that's what I get for copying an existing cronjob and not
thinking it through.

> Sparty2809, are you sure you don't want to use rsnapshot?  It does all
> of this for you.

I very well may use rsnapshot - I've been putting off trying to do a
rotation like that on my own, it looks like a great solution.


To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to