File descriptors in pipe.c

2013-01-30 Thread Ajay Tanpure
I am working on rsync tool. As rsync sends data over SSH in non-daemon mode, it forks the SSH process in pipe.c function. For the communication between the parent rsync and child SSH, it uses the socket pairs. As socket pairs are bidirectional, only one pair can be used for communication between

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 >

rsync --delete not working (no wildcards)

2013-01-30 Thread Stewart Jeacocke
>>On 01/28/13 17:02, Stewart Jeacocke wrote: >> I'm trying to copy some directories with rsync and would like to >> delete files from the destination if they no longer exist in the >> source. >> >> I'm using the following command: >> >> rsync -v --archive --hard-links --delete --force >> --filter='