Tuesday, 7 July 2009

rsync and Debian Lenny 5.0

This is only a brief introduction to rsync. The backup machine is Debian Lenny and backup my data file in Windows XP client.

There are many rsync backup program for Windows. They usually use tcp connection to talk to backup machine. That means in Linux you have to run rsync as daemon (rsync can copy file in remote shell mode or daemon mode).

In Debian side (as backup machine) :
edit file /etc/default/rsync,
RSYNC_ENABLE=true
so that it run in daemon mode
start rsync daemon
#/etc/init.d/rsync start
This is most simple configure file. Edit file /etc/rsyncd.conf :
[nas]
path=/home/nas
read only = no
The default uid and gid of the directory is nobody and nogroup.

make backup directory
#mkdir /home/nas
change directory owner
#chown nobody.nogroup /home/nas

In Windows XP, I use DeltaCopy as backup software:

- click "add new profile"
Profile Name : dailyBackup
Server IP/Host Name : 192.168.0.1
Virtual Directory Name : nas

click "Add Profile" to finish

- click "Add folder" and select the data folder
- right click dailyBackup, click "Run Now" for test.

No comments:

Post a Comment