Difference between revisions of "Instalasi dan Konfigurasi rsync"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
Line 95: | Line 95: | ||
# rsync -ur rsync://opensource.telkomspeedy.com/orari/* /folder/data/anda | # rsync -ur rsync://opensource.telkomspeedy.com/orari/* /folder/data/anda | ||
# rsync -ur rsync://opensource.telkomspeedy.com/abba/* /folder/data/anda | # rsync -ur rsync://opensource.telkomspeedy.com/abba/* /folder/data/anda | ||
+ | |||
+ | |||
+ | ==Pranala Menarik== | ||
+ | |||
+ | * [[Linux Howto]] | ||
+ | |||
+ | [[Category: Linux]] |
Revision as of 16:06, 7 November 2010
Install rsync
# apt-get install rsync
Server
Edit /etc/default/rsync
vi /etc/default/rsync
pastikan
RSYNC_ENABLE=true
Edit /etc/rsyncd.conf
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
/usr/bin/rsync --daemon &
Client
Untuk memudahkan proses rsync ada baiknya Mempersiapkan SSH untuk melakukan SCP Batch
Lakukan
# rsync -t -v source destination
Contoh untuk Update / Achive dari komputer source
# rsync -ur /home/tempat/data root@192.168.0.1:/home/backup/
Jika kita menggunakan SSH dengan port yang tidak standard misalnya 1220 maka
kita perlu mengubah sedikit perintah yang dilakukan misalnya dengan
# rsync -av --progress --inplace --rsh='ssh -p1220' foldersrc root@host:dest/
atau
# rsync -av --inplace --rsh='ssh -p1220' foldersrc root@host:dest/
Contoh di http://opensource.telkomspeedy.com
Coba lakukan
# rsync rsync://opensource.telkomspeedy.com/ # rsync rsync://opensource.telkomspeedy.com/orari/ # rsync rsync://opensource.telkomspeedy.com/abba/
Untuk mengcopy filenya kita dapat melakukan
# rsync -ur rsync://opensource.telkomspeedy.com/orari/* /folder/data/anda # rsync -ur rsync://opensource.telkomspeedy.com/abba/* /folder/data/anda