0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Synology の NAS に rsync でデータをバックアップ

Last updated at Posted at 2021-03-05

次のページを参考にしました。
ローカルと NAS 間の rsync をパスワードなしで実行

ローカルから、Synology にデータを同期アップロードします。

ローカルのフォルダー
/home/scott/folder_aa

Synology のフォルダー
/var/services/homes/scott/backup/folder_aa

Synology の設定

コントロールパネル -> ファイルサービス -> rsync
rsync_mar05.png

/etc/rsyncd.conf
# motd file = /etc/rsyncd.motd
# log file = /var/log/rsyncd.log
pid file = /var/run/rsyncd.pid
lock file = /var/run/rsync.lock
use chroot = no
[USERDATA]
path=/var/services/homes/scott/backup
read only=false
uid=1029
gid=100
hosts allow=219.116.115.21
hosts deny=*

uid と gid は次のようにして調べます。

$ more /etc/passwd | grep scott
scott:x:1029:100::/var/services/homes/scott:/bin/sh

スクリプト

rsync -av /home/scott/folder_aa scott@example.synology.me::USERDATA
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?