Rysnc Schedule
Matt McCutchen
hashproduct+rsync at gmail.com
Thu Jul 19 13:30:01 GMT 2007
On 7/19/07, Rick Romero <rick at havokmon.com> 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 {} \;
Sparty2809, are you sure you don't want to use rsnapshot? It does all
of this for you.
Matt
More information about the rsync
mailing list