Linux: File Transfers Cheat Sheet

# Copy *.html files from server to the local /tmp folder.

scp server:/var/www/*.html /tmp

# Secure copy file.txt to the /tmp folder on server

scp file.txt server:/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/

Leave a Reply

Your email address will not be published. Required fields are marked *