IGOS Nusantara dan rsync: Perbedaan revisi
Dari IGNwiki
| Baris 7: | Baris 7: | ||
=== Install rsync === | === Install rsync === | ||
# yum -y install rsync | # yum -y install rsync | ||
| + | |||
| + | === xinetd === | ||
| + | Service atau daemon rsync dijalankan memalui xinetd, file konfigurasi ada di /etc/xinetd.d/rsync, isinya: | ||
| + | service rsync | ||
| + | { | ||
| + | disable = no | ||
| + | socket_type = stream | ||
| + | wait = no | ||
| + | user = root | ||
| + | server = /usr/bin/rsync | ||
| + | server_args = --daemon | ||
| + | log_on_failure += USERID | ||
| + | } | ||
=== Buat konfigurasi di PC10 dan PC20 === | === Buat konfigurasi di PC10 dan PC20 === | ||
Revisi per 8 Desember 2009 08.32
IGOS Nusantara dan rsync
Bla bla bla
Daftar isi
Menyiapkan daemon
Install rsync
# yum -y install rsync
xinetd
Service atau daemon rsync dijalankan memalui xinetd, file konfigurasi ada di /etc/xinetd.d/rsync, isinya:
service rsync
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/bin/rsync
server_args = --daemon
log_on_failure += USERID
}
Buat konfigurasi di PC10 dan PC20
PC10 membuat konfigurasi /etc/rsync.conf, isinya:
use chroot = yes read only = yes pid file = /var/run/rsyncd.pid max connections = 2 motd file = /etc/rsyncd.motd log file = /var/log/rsync.log [pc10] comment=pc1 Akses Umum path=/home/pc10/umum hosts allow=192.168.1.5 127.0.0.1
PC20 membuat konfigurasi /etc/rsync.conf, isinya:
use chroot = yes read only = yes pid file = /var/run/rsyncd.pid max connections = 2 motd file = /etc/rsyncd.motd log file = /var/log/rsync.log [pc20] comment=pc2 Akses Umum path=/home/pc20/umum hosts allow=192.168.1.5 127.0.0.1
Buat /ect/rsyncd.motd
File /etc/rsyncd.motd berisi pesan atau label
# echo "Ini rsync server milik pc..." > /etc/rsyncd.motd
Memakai rsync untuk backup
... akan ditulis ...
Memakai rsync untuk mirror
... akan ditulis ...