rsync with different port through ssh
rsync -avz -e "ssh -p 2200" Source Destination
For Example:-
[root@akwal]# rsync -avz -e "ssh -p 2200" root@192.168.10.11:/home/akwal/* /home/akwal/
*ssh with the -e option worked like a charm.
with standard port its simple
# rsync -avz Source DestinationFor Example:-
[root@akwal]# rsync -avz root@192.168.10.11:/home/akwal/* /home/akwal/
0 comments:
Post a Comment