Przejdź do treści

Kopia rsync serwera Synology na WD Cloud

    Using rsync with Western Digital (WD) My Cloud allows for highly efficient, incremental backups between the NAS and another server, PC, or external drive. Whether your goal is to push data from your PC to the WD Cloud or pull/push between a WD Cloud and another NAS (like Synology), this setup ensures only modified data is transferred.

    1. Enable SSH on Your WD My Cloud

    To interact via rsync, SSH must be enabled so that the Linux command line can be utilized.

    1. Log in to the WD My Cloud Admin Dashboard.
    2. Navigate to Settings \(\rightarrow \) Network.
    3. Toggle SSH to On and set a secure password. The SSH username is generally root or sshd depending on your specific firmware version.

    2. Basic Rsync Syntax for WD My Cloud

    When using rsync from your local computer (Linux/macOS) to your WD My Cloud, use the following standard terminal format:

    bash

    rsync -avz /path/to/local/source/ root@<WD_CLOUD_IP>:/mnt/HD/HD_a2/your_share_name/
    

    Używaj kodu z rozwagą.

    Key Argument Definitions:

    • -a (Archive mode): Preserves file permissions, timestamps, symlinks, and recursively copies directories.
    • -v (Verbose): Provides detailed output of the files being transferred.
    • -z (Compress): Compresses file data during transfer for faster speeds over a network.

    3. Backing Up To/From Another NAS (e.g., Synology)

    If you are backing up from a Synology NAS to a WD My Cloud (using Synology Hyper Backup), or vice versa, you must configure the WD My Cloud as an Rsync-compatible server:

    Log into your WD My Cloud via SSH (using an SSH client like PuTTY).

    1. Configure the rsync daemon and modules by editing the rsyncd.conf file, ensuring your other NAS’s IP is added to the hosts allow list.
    2. On the source NAS (e.g., Synology Hyper Backup), select rsync-compatible server as the destination.
    3. Enter the WD My Cloud’s IP address, port 873, and SSH credentials (root and password) to finalize the connection.

    4. Important Considerations for WD My Cloud OS 5

    • Configuration Reset on Restart: On newer OS 5 firmware versions, the WD system resets custom configurations (like edited rsync.conf files) in the /etc directory whenever the NAS reboots.
    • Persistence Workaround: To keep rsync daemon settings persistent across restarts, experienced users save configuration files in a persistent directory (e.g., /mnt/HD/HD_a2/) and use a startup script in the .system/WDMyCloud/boot/ folder to reload the rsync daemon and secrets on boot.
    • Alternative Options: If configuring rsync persistence on WD OS5 proves overly complex, many users install dedicated sync tools (like GoodSync) on their local PCs or rely on the NAS’s built-in Remote Backup apps to safely automate backups over the local network or WAN.