- copying multiple files (with different names which cannot use the common symbol *) from a server to local or another server:
rsync -av 192.168.56.100:{/home/test/Desktop/DirM,/home/test/Desktop/Dir1} /home/test/rsync
- copying files with ssh key or specified ports:
rsync -av -e 'ssh -i .ssh/id_rsa -p 2034' 192.168.56.100:{/home/test/Desktop/DirM,/home/test/Desktop/Dir1} /home/test/rsync
Note the -i
is for the ssh key and -p
is for the specified port
Comments
Comment on GitHub