rsync ̿ ִ ġ Ű ؼ deletet
̿Ͽ ȭ Ҽ ִ.
(ready>root)/data#rsync -avz --delete 192.168.0.10::netvault /data
receiving file list ... done
./
aaa
sent 94 bytes received 162 bytes 512.00 bytes/sec
total size is 1282477568 speedup is 5009678.00
(ready>root)/data#
(ready>root)/data# ls
aaa netvault20061108.tar
(ready>root)/data# rsync -avz --delete 192.168.0.10::netvault /data
receiving file list ... done
deleting aaa
./
sent 74 bytes received 112 bytes 372.00 bytes/sec
total size is 1282477568 speedup is 6895040.69
(ready>root)/data# ls
netvault20061108.tar
cron ̳ ڰ rsync µ
Ŭ̾Ʈ ʿ Ŭ̾Ʈ ϰ ȴ. ̰ Ұ ȭ Ǵ 丮 ٸ ʴ´. ؾ Ѵٸ
delete ؾ Ѵ.
----- rsync log file .
(file>root)/var/adm#
tail -f rsyncd
2007/02/01 11:52:55 [12694] rsync on netvault from readytop (192.168.0.200)
2007/02/01 11:52:55 [12694] wrote 162 bytes read 94 bytes total size 1282477568
2007/02/01 11:53:17 [12700] rsync on netvault from readytop (192.168.0.200)
2007/02/01 11:53:17 [12700] wrote 112 bytes read 74 bytes total size 1282477568
2007/02/01 11:56:44 [12778] rsync on netvault from readytop (192.168.0.200)
2007/02/01 11:56:46 [12778] wrote 412587 bytes read 94 bytes total size 1285961619
2007/02/01 11:57:26 [12793] rsync on netvault from readytop (192.168.0.200)
2007/02/01 11:57:26 [12793] wrote 112 bytes read 74 bytes total size 1282477568
rsync log file ϱ ؼ /etc/rsyncd.conf Ͽ α ġ Ѵ.
(file>root)/var/adm# vi /etc/rsyncd.con
log file=/var/adm/rsyncd --- > log file ġ .
[netvault]
path = /data/netvaultdb
comment = solo
uid = root
gid = root
use chroot = yes
read only = yes
hosts allow = 192.168.0.200
max connections = 3
⼭ /var/adm ؿ rsyncd Ϸ α ߴ.
(file>root)/var/adm#touch rsyncd
α .
(file>root)/var/adm# ps -ef | grep inet
root 246 1 0 1 20 ? 0:02 /usr/sbin/inetd -s -t
root 14352 11770 0 13:25:52 pts/1 0:00 grep inet
root 385 1 0 1 20 ? 1:25 /usr/lib/inet/xntpd
(file>root)/var/adm#
rsyncd.conf ߱ inetd ٽ ؾ Ѵ.
timeout : Ŭ̾Ʈ ٽ ŸӾƿð. anonymous ϴ ؾ Ŭ̾Ʈ ü .