Skip to content

1.10 File Transfers

Tomato6966 edited this page Jun 29, 2021 · 1 revision

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/
Clone this wiki locally