|
May 13
|
rsync is an open source utility that provides fast incremental file transfer. rsync is freely available under the GNU General Public License and is currently being maintained by Wayne Davison.
The command for automatic backup
#On the rsync server [192.168.1.29].
touch /var/log/rsyncd.log
#Add the following lines to /etc/rsyncd.conf file.
motd file = /home/rsync/welcome.msg
log file = /var/log/rsyncd.log
use chroot = yes
[server_bkp]
path = /var/www/html
comment = Default rsync module
read only = yes
list = yes
uid = root
gid = root
max connections = 20
#Allowable client machines. Comma separated list.
hosts allow = 192.168.1.70
#Now restart the rsync daemon.
rsync –daemon
#On the client side [192.168.1.70].
mkdir /backup/html
#Set crontab for the backup.
crontab -e
#30 11 * * * /usr/bin/rsync -aqz 192.168.1.29::server_bkp /backup/html
For more information please visit http://rsync.samba.org