Re: rsync with aging

2013-01-31 Thread Matthias Schniedermeyer
On 30.01.2013 19:56, LuKreme wrote: > > On 30 Jan 2013, at 18:16 , Kevin Korb wrote: > > > cd /server ; find . -type f -mtime +30 -print | cpio -pvdm /archive/ > > I *think* > > `rysnc -aRP ...` is working for what I need. Another solution would be a tar-pipe. cd /server ; tar -c --null -T

Re: rsync with aging

2013-01-30 Thread LuKreme
On 30 Jan 2013, at 18:16 , Kevin Korb wrote: > cd /server ; find . -type f -mtime +30 -print | cpio -pvdm /archive/ I *think* `rysnc -aRP ...` is working for what I need. …still testing. -- "Back off, man. I'm a scientist." -- Please use reply-all for most replies to avoid omitting the m

Re: rsync with aging

2013-01-30 Thread Kevin Korb
-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

Re: rsync with aging

2013-01-30 Thread LuKreme
On 29 Jan 2013, at 18:01 , LuKreme wrote: > > On 29 Jan 2013, at 17:12 , Kevin Korb 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 >

Re: rsync with aging

2013-01-29 Thread LuKreme
On 29 Jan 2013, at 17:12 , Kevin Korb 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! -- Criticizing evolutionary theory be

Re: rsync with aging

2013-01-29 Thread Kevin Korb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 find /server -type f -mtime +30 -exec mv -v {} /archive/ \; cd /archive ; find . -type f -exec rm -v /server/{} \; On 01/29/13 18:59, LuKreme wrote: > I have two folders, let's call them Server and Archive. > > What I want to do is send all the files

rsync with aging

2013-01-29 Thread LuKreme
I have two folders, let's call them Server and Archive. What I want to do is send all the files from server that are older than… say 30 days to archive and delete them from server. OK, no problem. However, I also want to delete any files from Server that already exist on Archive. So let's say o