hey folks, rsync is a great tool! i use it mostly to sync up Documents between several machines. i use it like this: rsync --progress -vrae ssh /home/bill/Graphics/ bill@vortex:/home/rmckown/Graphics/ the problem i have, is i want to specifiy a specific ssh port other than 22. i want to connect to a specific ssh server behind the firewall on the remote end. it would be nice to use the command like this: rsync --progress -vrae ssh -p8022 /home/bill/Graphics/ bill@vortex:/home/bill/Graphics/ anyone have any ideas? Ron McKown rmckown@envenergy.com
Make a script; call it 'sshp' for this example: % cat sshp #!/bin/sh exec ssh -p 8022 "$*" and then run rsync -av -e sshp <source> <dest> Such a wrapper script is useful for including other options (-x, -a, -o 'BatchMode yes', etc.). Cheers -- JD +-------------------------------------+-------------------------------------+ | JD Paul | Do not meddle in the affairs of | | jdpaul@interstel.net | sysadmins, for they are not | | http://www.interstel.net/~jdpaul/ | particularly subtle, and have | | | the root password. | +-------------------------------------+-------------------------------------+ On Mon, 5 Nov 2001, Ron McKown wrote:> hey folks, > rsync is a great tool! i use it mostly to sync up Documents between several > machines. i use it like this: > rsync --progress -vrae ssh /home/bill/Graphics/ > bill@vortex:/home/rmckown/Graphics/ > > the problem i have, is i want to specifiy a specific ssh port other than 22. > i want to connect to a specific ssh server behind the firewall on the remote > end. > > it would be nice to use the command like this: > rsync --progress -vrae ssh -p8022 /home/bill/Graphics/ > bill@vortex:/home/bill/Graphics/ > > anyone have any ideas? > > Ron McKown > rmckown@envenergy.com >
You're in luck. the argument to -e can be a quoted string.
rsync --progress -vrae 'ssh -p 8022' /home/bill/Graphics/
bill@vortex:/home/bill/Graphics/
These hotshots thought of everything, didn't they?
Tim Conway
tim.conway@philips.com
303.682.4917
Philips Semiconductor - Longmont TC
1880 Industrial Circle, Suite D
Longmont, CO 80501
Available via SameTime Connect within Philips, n9hmg on AIM
perl -e 'print pack(nnnnnnnnnnnn,
19061,29556,8289,28271,29800,25970,8304,25970,27680,26721,25451,25970),
".\n" '
"There are some who call me.... Tim?"
Ron McKown <rmckown@envenergy.com>
Sent by: rsync-admin@lists.samba.org
11/05/2001 04:49 PM
Please respond to rmckown
To: rsync@lists.samba.org
cc: (bcc: Tim Conway/LMT/SC/PHILIPS)
Subject: rsync over different ssh port
Classification:
hey folks,
rsync is a great tool! i use it mostly to sync up Documents between
several
machines. i use it like this:
rsync --progress -vrae ssh /home/bill/Graphics/
bill@vortex:/home/rmckown/Graphics/
the problem i have, is i want to specifiy a specific ssh port other than
22.
i want to connect to a specific ssh server behind the firewall on the
remote
end.
it would be nice to use the command like this:
rsync --progress -vrae ssh -p8022 /home/bill/Graphics/
bill@vortex:/home/bill/Graphics/
anyone have any ideas?
Ron McKown
rmckown@envenergy.com
Tim, Currently I have rsync setup on hosta which syncs to hostb. Rsync deletes whatever deleted from hosta and copy and sync from hosta to hostb. Does rsync catch changes made and sync hosta in case any changes are made to hostb? Please let me know. Thanks Raj ==== __________________________________________________ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com