Michael Leone on 30 Dec 2013 12:36:43 -0800


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

Re: [PLUG] rsync over SSH problems


On Mon, Dec 30, 2013 at 2:45 PM, Timothy Jones <ti.do.jo@gmail.com> wrote:
> 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)

Ratz. I looked right over that. Numerous times.

>
> 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.

Yeah, that made it work.

Sorry for the noise ....

>
>
> 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
>
___________________________________________________________________________
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