pruning old files
Shinichi Maruyama
marya at st.jip.co.jp
Tue Oct 22 00:47:00 EST 2002
jw> In the past i found that using find was quite good for this.
jw> Use touch to create a file with a mod_time just before you
jw> started the last sync. Then from inside $src run
jw> find . -newer $touchfile -print|cpio -pdm $dest
For pruning, how about to add the feature to rsync.
Is it difficult ?
--exclude-older=SECONDs
exclude files older than SECONDs before
--ignore-older=SECONDs
ignore any operations with the files older than
SECONDs before
differ from --exclude-olders, these files are not
affected from --include files or --delete-excluded
--
MARUYAMA Shinichi <marya at st.jip.co.jp>
More information about the rsync
mailing list