1

/usr/bin/rsync -rave "/usr/bin/ssh -l username" /home/username servername:/home/username/

Synchronize files from your user home folder to a remote server using ssh for encryption. Replace username with your own user account and servername with the IP or domain of the remote server.

For convenience, add this command to your crontab (assuming you have passwordless ssh setup).

Requires rsync be installed:
Red Hat Enterprise Linux and rebuilds: yum install rsync
Ubuntu and Debian: apt-get rsync

redaudit's picture
Submitted by redaudit 2 years 18 weeks ago – Made popular 2 years 18 weeks ago
Category: Linux   Tags:
1
Page generated in: 0.002420 seconds.