How To Backup Local Unix Host Using rsnapshot rsync Utility
How To Backup Remote Linux Host Using rsnapshot rsync Utility
Oct 31, 2009
Oct 22, 2009
Oct 21, 2009
Oct 6, 2009
rsync for backup
server 端
設定 /etc/rsyncd.conf, 一組設定稱為一個module[KG6500_Stream]
path = /media/HD-CEU2 # server 端的備份位置
uid = root
gid = root
secrets file = /etc/rsyncd.secrets # 帳號密碼設定檔
read only = no
client
要備份的資料夾: /home/Stream執行 rsync -vrtopg --progress --password-file=/etc/rsyncd.secrets /home/Stream backup@127.0.0.1::KG6500_Stream
會將client端的/home/Stream 整個資料夾備份到/media/HD-CEU2/Stream
參數說明
v : 顯示進度r : 遞迴
topg : 維持檔案屬性