rsync圖庫同步紀實

server端:
安裝
/usr/ports/net/rsync

/usr/local/etc/rsyncd.conf
[My_Pictures]
        path = /home/www/pictures
        comment = public pictures
        auth users = notexist
        secrets file = /usr/local/etc/rsyncd.secrets
        read only = no
        incoming chmod = Dugo=rwx,Fu=rw,Fgo=r

P.S. chmod只能用這方式敘述的樣子,D、F分別代表資料夾和檔案,u、g、o依序是持有者、持有群組跟其他,rwx就是剩下的權限敘述

Client端Task:
“C:\Program Files\cwRsync\bin\rsync.exe" -vr –progress –password-file=rsync.txt “/cygdrive/c/Documents and Settings/NotExist/My Documents/My Pictures/" notexist@hq.tdcpf.org::My_Pictures

增量備份memo
http://www.mikerubel.org/computers/rsync_snapshots/
http://linuxfocus.org/ChineseGB/March2004/article326.shtml

SSH
http://phorum.study-area.org/viewtopic.php?t=42960

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

%d 位部落客按了讚: