rsync files with mtime
Richard Z
rzheng at gmail.com
Tue Jan 30 19:32:51 GMT 2007
Hi,
I try to rsync files only X days old.
This is my setup. The backup server needs to store all servers' backup
and only has space for 7 days backup. But each individual server has
backup for 21 days. On the backup server, i remove files older than 7
days. When backup server pulls files, I want rsync only pull files
with mtime last 7 days.
Searching through the archive, someone suggested using
(cd src && find . -atime +6 -print) | rsync --files-from=- src/ dest/
This works on the source server, but not on the dest server.
Anyone knows how to get the job done on the backup server?
Thanks,
More information about the rsync
mailing list