Instalasi dan Konfigurasi rsync

From OnnoWiki
Revision as of 08:56, 12 February 2008 by Onnowpurbo (talk | contribs) (New page: Install rsync # apt-get install rsync ==Server== Edit # vi /etc/rsyncd.conf Pastikan ada pid file = /var/run/rsyncd.pid max connections = 5 use chroot = yes uid = nobody gid ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install rsync

# apt-get install rsync


Server

Edit

# vi /etc/rsyncd.conf

Pastikan ada

pid file = /var/run/rsyncd.pid
max connections = 5
use chroot = yes
uid = nobody
gid = nogroup

Share folder

[backup]
path=/folder/tempat/backup

Buat folder backup

 # mkdir /folder
 # mkdir /folder/tempat
 # mkdir /folder/tempat/backup
 # chown -Rf nobody.nogroup /folder/tempat

Aktifkan rsync daemon

# rsync --daemon

Jika perlu masukan ke rc.local

# vi /etc/rc.local

isi

rsync --daemon &


Client

  1. rsync -t -v source destination