How do I tell rsync to use a different port for SSH ?
# rsync -av -e "ssh -p [port_number]" user@ip:/path/to/source/ /path/to/destination/
Example, i will copy data from [email protected]:/root/backup/ to /home/lifelinux/backup/ with source server has ssh port is 2222. Type the following command
# rsync -av -e "ssh -p 2222" [email protected]:/root/backup/ /home/lifelinux/backup/
Related Posts:
- How To Copy Hidden Files On Linux
- What is the role of this variables in php.ini file (expose_php – allow_url_fopen – register_globals) ?
- How To Keep Data Sync’d Between Two Load Balanced Servers