1.10 File Transfers - Tomato6966/Debian-Cheat-Sheet-Setup GitHub Wiki
Secure copy file.txt to the /tmp folder on server
scp file.txt server:/tmp
Copy *.html files from server to the local /tmp folder.
scp server:/var/www/*.html /tmp
Copy all files and directories recursively from server to the current system's /tmp folder.
scp -r server:/var/www /tmp
Synchronize /home to /backups/home
rsync -a /home /backups/
Synchronize files/directories between the local and remote system with compression enabled
rsync -avz /home server:/backups/