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.
- Log in to the WD My Cloud Admin Dashboard.
- Navigate to Settings \(\rightarrow \) Network.
- Toggle SSH to On and set a secure password. The SSH username is generally
rootorsshddepending 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).
- Configure the rsync daemon and modules by editing the
rsyncd.conffile, ensuring your other NAS’s IP is added to thehosts allowlist. - On the source NAS (e.g., Synology Hyper Backup), select rsync-compatible server as the destination.
- Enter the WD My Cloud’s IP address, port 873, and SSH credentials (
rootand 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.conffiles) in the/etcdirectory whenever the NAS reboots. - Persistence Workaround: To keep
rsyncdaemon 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.