Rsync File listing

Travis Quarterman travisq at gmail.com
Fri May 11 19:16:02 GMT 2007


Thanks, Paul, I finally got it working using your solution.

On 5/11/07, Travis Quarterman <travisq at gmail.com> wrote:
>
> I am wanting to bring over the sub-directories as well from remote
> machines, so that they can build the same directory structure on the local
> machine, not just rsync files, maybe I was misleading in my first post.
>
> Thanks
>
> On 5/11/07, Paul Slootman <paul at debian.org> wrote:
> >
> > On Fri 11 May 2007, Travis Quarterman wrote:
> >
> > > Paul, this solution of redirecting the files into /tmp does not
> > contain the
> > > contents of the files on remote host, since I wanting to store the
> > files and
> > > there content on local machines I not sure this is will work.
> > >
> > > 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).
> >
> > > >I would suggest first doing:
> > > >ssh remoteuser at martins 'find server*/adhoc/remotedir* -mtime -1
> > -print >
> > > >/tmp/rsync-list'
> >
> > If you want the list locally, then change the above to:
> >
> > ssh remoteuser at martins 'find server*/adhoc/remotedir* -mtime -1 -print'
> > > locallist
> >
> > > >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/
> >
> > change the above to:
> >
> > /usr/local/bin/rsync -avz --delete --rsync-path=/usr/local/bin/rsync
> > --files-from=locallist remoteuser at martins:/home/remoteuser /local/dir/
> >
> >
> > I'm not quite sure what you meant with your other reply...
> >
> > PS: please reply under the relevant bits, it gives some context to what
> > you're referring, making it easier to reply.  And edit out irrelevant
> > stuff.
> >
> >
> > 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
> > <http://www.catb.org/%7Eesr/faqs/smart-questions.html>
> >
>
>
>
> --
> Travis Quarterman, Sr.




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


More information about the rsync mailing list