Transfer files to another server with rsync over SSH
rsync to remote server | rsync with different ssh port | migrate website to new server | backup over ssh | rsync | ssh | backupCaution: This command changes the system. Understand what it does before you run it.
rsync -avz -e 'ssh -p 22' /var/www/vhosts/example.com/httpdocs/ webuser@backup.example.com:/home/webuser/backup/httpdocs/Copies the contents of the source to the target server over SSH, and -z compresses the data in transit. Later runs only transfer changed files. To reverse the direction, use BENUTZER@HOST:PFAD/ as the source and a local path as the destination.
Note: rsync must be installed on both servers. For automated runs, set up an SSH key without a passphrase prompt.
Also searched as
- rsync to remote server
- rsync with different ssh port
- migrate website to new server
- backup over ssh