Synology & rsync

Beschreibung deines ersten Forums.
Post Reply
News-Writer
Posts: 26
Joined: Fri, 20. Jan 2012, 11:03

Synology & rsync

Post by News-Writer »

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:
  1. Log in to the Synology Diskstation web frontend, usually at http://ip_address:5000/ or https://ip_address:5001/.
  2. Click the main menu icon in the top left.
  3. Select Backup & Replication from the menu.
  4. Select Backup Services in the window that pops Up.
  5. Check the Enable network backup and the Use customized rsync configuration box and click Apply.
  6. Make sure to allow rsync connections through the Diskstation firewall if prompted.
  7. 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).
  8. Run

    Code: Select all

    grep rsync /etc/synoinfo.conf
    and check that

    Code: Select all

    use_rsyncd_conf
    is set to

    Code: Select all

    "yes"
    , including quotes.
  9. Edit the rsync configuration file as required - it's in

    Code: Select all

    /etc/rsyncd.conf
    . Example share config info is below.
  10. 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
    .
  11. Test the share works with a command like

    Code: Select all

    rsync --recursive --dry-run ip_address::share_name/ test
    from a remote machine
Here is a sample share config section to put into /etc/rsyncd.conf, creating a read-only share that’s accessible without authentication from 192.168.1.1:

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
Post Reply