Rsync: Difference between revisions

From James's Wiki
No edit summary
Line 1: Line 1:
==To copy files to a remote server==
==To copy files to a remote server==
  rsync -e 'ssh -p 2222' *.txt username@batman:/tmp
  rsync -e 'ssh -p 2222' *.txt username@batman:/tmp
NOTE: It might be possible to set the default ssh port in ~/.ssh/config so specifying the remote port all the time will be unnecessary.

Revision as of 13:48, 14 January 2018

To copy files to a remote server

rsync -e 'ssh -p 2222' *.txt username@batman:/tmp


NOTE: It might be possible to set the default ssh port in ~/.ssh/config so specifying the remote port all the time will be unnecessary.