Rsync File listing

Travis Quarterman travisq at gmail.com
Fri May 11 15:42:16 GMT 2007


Paul this is great! What parameters to rsync do suggests for having rsync
pulling the first batch of files from remote machines and subsequent pulls
to only include changes to the files?

On 5/11/07, Paul Slootman <paul at debian.org> wrote:
>
> On Fri 11 May 2007, Travis Quarterman wrote:
> > Subject: Rsync File listing
>
> > Can someone assist me in using rsync to ssh into a remote server to
> obtain
> > the file listing? As it appears I have some files on a remote server
> that I
> > need to pull, however there are many files in the remote server
> directory,
> > to why I am wanting to only pull a certain (-mtime -1).
> >
> > Here is what I have so far:
> > /usr/local/bin/rsync -e ssh -avz --delete
> --rsync-path=/usr/local/bin/rsync
> > --files-from=- /some/dir remoteuser at martins:/home/remoteuser | find
> > server*/adhoc/remotedir* -mtime -1 -print  /local/dir/
>
> Where is the input for the --files-from=- coming from?  What I see above
> is that you're piping the output from rsync into find, which I cannot
> see being useful...
>
> I would suggest first doing:
> ssh remoteuser at martins 'find server*/adhoc/remotedir* -mtime -1 -print >
> /tmp/rsync-list'
>
> and then
> /usr/local/bin/rsync -avz --delete --rsync-path=/usr/local/bin/rsync
> --files-from=:/tmp/rsync-list remoteuser at martins:/home/remoteuser
> /local/dir/
>
> although I hope you don't mind having any other files in /local/dir/
> deleted (due to the --delete).
>
>
> Paul Slootman
> --
> To unsubscribe or change options:
> https://lists.samba.org/mailman/listinfo/rsync
> Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
>



-- 
Travis Quarterman, Sr.
-------------- next part --------------
HTML attachment scrubbed and removed


More information about the rsync mailing list