pruning old files

Brad Hards bhards at bigpond.net.au
Tue Oct 22 02:31:01 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 22 Oct 2002 10:46, Shinichi Maruyama wrote:
> 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 ?
Shouldn't be. rsync already has feeping creaturism, although some 
conservatives have been known to object on principle to adding cool new 
features.

> 	--exclude-older=SECONDs
> 		exclude files older than SECONDs before
Define "older"?
Do you mean atime, mtime or ctime?

> 	--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
Same here. What does "operations" mean?

Brad
- -- 
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9tLYXW6pHgIdAuOMRAtkWAJ48aeJJkFswMy6LV+pV2iDhnQdZEQCdESxv
6GSzBILvcWFdLwQmMYswZ6Y=
=il4h
-----END PGP SIGNATURE-----




More information about the rsync mailing list