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