Michael Leone on 30 Dec 2013 11:34:47 -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 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:

rsync -avzhe ssh backup.tar root@
< 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/

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