rsync with aging

Kevin Korb kmk at sanitarium.net
Wed Jan 30 18:16:56 MST 2013


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

Dang, I knew you were going to say that.

Been a long time since I used cpio and their man page is now
essentially useless now but I think you want something like:

cd /server ; find . -type f -mtime +30 -print | cpio -pvdm /archive/

On 01/30/13 20:13, LuKreme wrote:
> 
> On 29 Jan 2013, at 18:01 , LuKreme <kremels at kreme.com> wrote:
> 
>> 
>> On 29 Jan 2013, at 17:12 , Kevin Korb <kmk at sanitarium.net>
>> wrote:
>> 
>>> find /server -type f -mtime +30 -exec mv -v {} /archive/ \; cd
>>> /archive ; find . -type f -exec rm -v /server/{} \;
>> 
>> Ah… OK, that is an interesting idea I've never considered, and no
>> rsync involved.
>> 
>> Thanks!
> 
> Ah, this does not work as files that are on /server/some/path they
> end up at /archive/ and not /archive/some/path.
> 
> I need to preserver the directory structure on server and duplicate
> it to target.
> 

- -- 
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			http://www.sanitarium.net/
	PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlEJxggACgkQVKC1jlbQAQcYlQCgq85vOop1dJvtfSvBROYRXy7o
0zsAoKgg0Xy8F1n910J8dQh8Yahtkpr4
=zDqE
-----END PGP SIGNATURE-----


More information about the rsync mailing list