-----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 <[email protected]> wrote:
> 
>> 
>> On 29 Jan 2013, at 17:12 , Kevin Korb <[email protected]>
>> 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.               [email protected]  (work)
        Orlando, Florida                [email protected] (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-----
-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to