Synology & rsync
Posted: Sun, 8. Nov 2015, 19:25
Ich habe versucht auf meinem NAS von einer anderen Linux-Maschine ein Backup via rsync durchzuführen. Das hat aber leider nicht so geklappt, wie ich es mir vorgestellt habe.
Nach dem Anpassen einiger Einstellungen lief es dann aber.
Ich bin wie folgt vorgegangen:
Nach dem Anpassen einiger Einstellungen lief es dann aber.
Ich bin wie folgt vorgegangen:
- Log in to the Synology Diskstation web frontend, usually at http://ip_address:5000/ or https://ip_address:5001/.
- Click the main menu icon in the top left.
- Select Backup & Replication from the menu.
- Select Backup Services in the window that pops Up.
- Check the Enable network backup and the Use customized rsync configuration box and click Apply.
- Make sure to allow rsync connections through the Diskstation firewall if prompted.
- Now SSH in to the Diskstation (instructions on how to do this are easy to find on the web if you haven’t already enabled SSH).
- Run and check that
Code: Select all
grep rsync /etc/synoinfo.confis set toCode: Select all
use_rsyncd_conf, including quotes.Code: Select all
"yes" - Edit the rsync configuration file as required - it's in . Example share config info is below.
Code: Select all
/etc/rsyncd.conf - Restart the rsync daemon with .
Code: Select all
/usr/syno/etc.defaults/rc.sysv/S84rsyncd.sh stop && /usr/syno/etc.defaults/rc.sysv/S84rsyncd.sh start - Test the share works with a command like from a remote machine
Code: Select all
rsync --recursive --dry-run ip_address::share_name/ test
Code: Select all
[test]
path = /volume1/test
comment = "Test share"
uid = root
gid = root
read only = yes
list = yes
charset = utf-8
secrets file = /etc/rsyncd.secrets
hosts allow = 192.168.1.1