* [gentoo-user] rsync over ssh "--delete" not working
@ 2005-11-25 22:44 Joseph
2005-11-25 22:51 ` Joseph
2005-11-25 23:00 ` Mike Williams
0 siblings, 2 replies; 8+ messages in thread
From: Joseph @ 2005-11-25 22:44 UTC (permalink / raw
To: gentoo
How to make "--delete" work with rsync over ssh?
When I do "rsync" I want it to delete files on destination if they are
not present on source:
example:
rsync -av ssh --delete source/
joseph@10.0.0.101:/home/joseph/destination
I get:
building file list ... link_stat "/home/joseph/ssh" failed: No such file
or directory
--
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-25 22:44 [gentoo-user] rsync over ssh "--delete" not working Joseph
@ 2005-11-25 22:51 ` Joseph
2005-11-25 23:30 ` Joseph
2005-11-26 0:05 ` Neil Bothwick
2005-11-25 23:00 ` Mike Williams
1 sibling, 2 replies; 8+ messages in thread
From: Joseph @ 2005-11-25 22:51 UTC (permalink / raw
To: gentoo-user
Got it! I was missing "e"
rsync -ave ssh --delete source/.. .. ..
--
#Joseph
On Fri, 2005-11-25 at 15:44 -0700, Joseph wrote:
> How to make "--delete" work with rsync over ssh?
> When I do "rsync" I want it to delete files on destination if they are
> not present on source:
>
> example:
> rsync -av ssh --delete source/
> joseph@10.0.0.101:/home/joseph/destination
> I get:
> building file list ... link_stat "/home/joseph/ssh" failed: No such file
> or directory
>
> --
> #Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-25 22:44 [gentoo-user] rsync over ssh "--delete" not working Joseph
2005-11-25 22:51 ` Joseph
@ 2005-11-25 23:00 ` Mike Williams
1 sibling, 0 replies; 8+ messages in thread
From: Mike Williams @ 2005-11-25 23:00 UTC (permalink / raw
To: gentoo-user
On Friday 25 November 2005 22:44, Joseph wrote:
> How to make "--delete" work with rsync over ssh?
By telling rsync to delete.
> When I do "rsync" I want it to delete files on destination if they are
> not present on source:
>
> example:
> rsync -av ssh --delete source/
> joseph@10.0.0.101:/home/joseph/destination
> I get:
> building file list ... link_stat "/home/joseph/ssh" failed: No such file
> or directory
Yep, that's exactly what you should see.
You've told rsync to copy ssh and source to
joseph@10.0.0.101:/home/joseph/destination
rsync has defaulted to ssh for ages now, but to force it you have to specify
the remote shell.
--
Mike Williams
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-25 22:51 ` Joseph
@ 2005-11-25 23:30 ` Joseph
2005-11-26 0:05 ` Neil Bothwick
1 sibling, 0 replies; 8+ messages in thread
From: Joseph @ 2005-11-25 23:30 UTC (permalink / raw
To: gentoo-user
On Fri, 2005-11-25 at 15:51 -0700, Joseph wrote:
> Got it! I was missing "e"
> rsync -ave ssh --delete source/.. .. ..
>
> --
> #Joseph
I have another question related to rsync.
If I do rsync over ssh and next do it again but with directory mounted
with "samba"; it starts copying all the files, regardless if the files
has change or not
Does it has something do to with file permission on samba vs. Linux
(Unix type)?
--
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-25 22:51 ` Joseph
2005-11-25 23:30 ` Joseph
@ 2005-11-26 0:05 ` Neil Bothwick
2005-11-26 2:27 ` Joseph
1 sibling, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2005-11-26 0:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 333 bytes --]
On Fri, 25 Nov 2005 15:51:34 -0700, Joseph wrote:
> Got it! I was missing "e"
> rsync -ave ssh --delete source/.. .. ..
You don't need -e or ssh, rsync uses ssh as its remote shell by default.
rsync -av --delete source/ ... would do exactly the same.
--
Neil Bothwick
Resistance is futile, Persistance is MSDOS
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-26 0:05 ` Neil Bothwick
@ 2005-11-26 2:27 ` Joseph
2005-11-26 3:03 ` Nick Rout
0 siblings, 1 reply; 8+ messages in thread
From: Joseph @ 2005-11-26 2:27 UTC (permalink / raw
To: gentoo-user
On Sat, 2005-11-26 at 00:05 +0000, Neil Bothwick wrote:
> On Fri, 25 Nov 2005 15:51:34 -0700, Joseph wrote:
>
> > Got it! I was missing "e"
> > rsync -ave ssh --delete source/.. .. ..
>
> You don't need -e or ssh, rsync uses ssh as its remote shell by default.
>
> rsync -av --delete source/ ... would do exactly the same.
That was my impression too but when I tried it without "e" it gave the
the error:
rsync -av ssh --delete source/ joseph@10.0.0.101:/home/joseph/destination
building file list ... link_stat "/home/joseph/ssh" failed: No such file or directory
When I added "e" it deleted the file on destination, and no errors
showed up.
--
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-26 2:27 ` Joseph
@ 2005-11-26 3:03 ` Nick Rout
2005-11-26 3:45 ` Joseph
0 siblings, 1 reply; 8+ messages in thread
From: Nick Rout @ 2005-11-26 3:03 UTC (permalink / raw
To: gentoo-user
On Fri, 25 Nov 2005 19:27:08 -0700
Joseph <syscon@interbaun.com> wrote:
> On Sat, 2005-11-26 at 00:05 +0000, Neil Bothwick wrote:
> > On Fri, 25 Nov 2005 15:51:34 -0700, Joseph wrote:
> >
> > > Got it! I was missing "e"
> > > rsync -ave ssh --delete source/.. .. ..
> >
> > You don't need -e or ssh, rsync uses ssh as its remote shell by default.
> >
> > rsync -av --delete source/ ... would do exactly the same.
>
> That was my impression too but when I tried it without "e" it gave the
> the error:
> rsync -av ssh --delete source/ joseph@10.0.0.101:/home/joseph/destination
> building file list ... link_stat "/home/joseph/ssh" failed: No such file or directory
>
> When I added "e" it deleted the file on destination, and no errors
> showed up.
no, when you did it you specified that it was to copy a file called
ssh. just leave ssh out altogether.
if you want to specify the remote shell to use, specify it with -e ssh,
if you want to rely on the default, leave out -e, and leave out "ssh"
unless you really DO want to copy a file called ssh.
>
> --
> #Joseph
> --
> gentoo-user@gentoo.org mailing list
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] rsync over ssh "--delete" not working
2005-11-26 3:03 ` Nick Rout
@ 2005-11-26 3:45 ` Joseph
0 siblings, 0 replies; 8+ messages in thread
From: Joseph @ 2005-11-26 3:45 UTC (permalink / raw
To: gentoo-user
[snip]
On Sat, 2005-11-26 at 16:03 +1300, Nick Rout wrote:
> > When I added "e" it deleted the file on destination, and no errors
> > showed up.
>
> no, when you did it you specified that it was to copy a file called
> ssh. just leave ssh out altogether.
>
> if you want to specify the remote shell to use, specify it with -e
> ssh,
> if you want to rely on the default, leave out -e, and leave out "ssh"
> unless you really DO want to copy a file called ssh.
Thank you for explanation, works like a charm.
--
#Joseph
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-11-26 3:50 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-25 22:44 [gentoo-user] rsync over ssh "--delete" not working Joseph
2005-11-25 22:51 ` Joseph
2005-11-25 23:30 ` Joseph
2005-11-26 0:05 ` Neil Bothwick
2005-11-26 2:27 ` Joseph
2005-11-26 3:03 ` Nick Rout
2005-11-26 3:45 ` Joseph
2005-11-25 23:00 ` Mike Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox