On Oct 31 21:39:20, nathanael@dalliard.ch wrote:
> Jan Stary <hans@stare.cz> wrote:
> > On Oct 31 21:25:00, nathanael@dalliard.ch wrote:
> > > Jan Stary <hans@stare.cz> wrote:
> > > > On Oct 31 19:10:52, nathanael@dalliard.ch wrote:
> > > > > $ openrsync --rsync-path=openrsync -r --exclude text1.txt s1:test .
> > > >
> > > > That syncs the remote s1:test to the local ./test
> > > >
> > > > > $ ssh s1 ls test
> > > > > text1.txt
> > > > > text2.txt
> > > >
> > > > Of course text1.txt is still at the _source_.
> > >
> > > and in the local ./test folder:
> > >
> > > $ ls test/
> > > text1.txt text2.txt
> > >
> > > it is excluded when done from local to local
> > > it is excluded when done from local to remote
> > >
> > > it is not excluded when done from remote to local
> >
> > Are you sure it is not there from a previous sync?
> > If you manualy remove the local ./test/text1.txt,
> > will the next sync still put it there?
> >
> > remote$ mkdir /tmp/dir
> > remote$ touch /tmp/dir/{foo,bar}
> >
> > local$ openrsync -av remote:/tmp/dir/ /tmp/ dir/
> > Transfer starting: 3 files
> > dir/
> > dir/bar (0 B, 100.0% downloaded)
> > dir/foo (0 B, 100.0% downloaded)
> > Transfer complete: 180 B sent, 52 B read, 0 B file size
> >
> > local$ rm /tmp/dir/foo
> > local$ openrsync -av --exclude foo remote:/tmp/dir/ /tmp/dir/
> > Transfer starting: 2 files
> > Transfer complete: 78 B sent, 21 B read, 0 B file size
> >
> > local$ ll /tmp/dir/
> > total 0
> > -rw-r--r-- 1 hans wheel 0 Oct 31 21:30 bar
>
> you are using rsync:
> --rsync-path=program
> Run program on the remote host instead of the default rsync.
Ah, right. I see the same now.
No comments:
Post a Comment