Timothy Jones on 30 Dec 2013 11:46:04 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] rsync over SSH problems


You seem to be trying to tell rsync to use ssh, but the proper way to specify that is:

--rsh=ssh 

OR

-e ssh 

(which is what is done in the link you reference, ssh follows the e option in that command)

as an option. In your case, you have in your command simply "ssh" which it treats as a folder.  Change "ssh" to --rsh=ssh or -e ssh and it should work.


On Mon, Dec 30, 2013 at 2:34 PM, Michael Leone <turgon@mike-leone.com> wrote:
On Mon, Dec 30, 2013 at 1:59 PM, jeff weisberg <jaw+plug@tcp4me.com> wrote:

>> $ sudo rsync -ravzhq --dry-run --log-file=/tmp/rsync.log
>> --remove-source-files /my-area/ ssh [...]
>
>
>                                   ^^^
> because this----------------------|||
> is probably not what you meant

OK, why isn't it? :-) That looks like the examples I see about sending
a file via SSH using rsync:

Example:
rsync -avzhe ssh backup.tar root@192.168.0.100:/backups/
< http://www.tecmint.com/rsync-local-remote-file-synchronization-commands/ >

So what should it be?

This is working, but it's more than slightly ugly:

$ sudo ssh <DMZ-user@DMZ-IP>'ls /tmp' && rsync -rvzhqpog
--log-file=/tmp/rsync.log --remove-source-files /my-area/
<DMZ-user@DMZ-IP>:/my-area/

I'm establishing an SSH connection, executing an ls (just so it does
something), and then does an rsync. This is working fine.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug