
使用 rsync 同步到 Synology 上面出現 ERROR: module is read only 的錯誤信息, 例如
rsync -avz --progress work -e ssh rs:~/
出現
building file list ...
ERROR: module is read only
rsync error: syntax or usage error (code 1) at main.c(1034) [Receiver=3.0.9]
523 files to consider
rsync: connection unexpectedly closed (8 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-42/rsync/io.c(452) [sender=2.6.9]
原因是 homes 這個目錄預設的權限是關閉的, 除非把 homes 授權打開, 但是這樣又不太好, 所以最佳的解決方式是另外建立一個目錄來進行 rsync, 例如
rsync -avz --progress work -e ssh rs:/volume1/backup/
這樣就可以了