Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dangerous Rsync server bug: Syncing OMV to a backup OMV server deletes all files #86
I've discovered a dangerous bug with Rsync server:
My NAS setup consists of two OMV servers each with 1 data drive. The main server is running rsync as server. The backup server is configured to synchronize all data 1:1 with the main server over rsync (configured over web interface). Therefore a rsync job was configured to pull the data from the main server.
If the data drive of the main server is now removed / broken or similar and the rsync pull job still running (cron job configured in the rsync module in web interface) all data will be erased !
This encounters if you configure this rsync job as a cron job over the rsync setting interface with rsync option "Delete files on the receiving side which doesn't exist on sender".
You can test it with rsync option "--dry-run" and a backup server installed in Virtualbox with external USB drive. Sync on time, and second time just disconnect the data drive in your main OMV before the rsync job is running and see what happens ...
Please get sure that rsync server is NOT running or data not available in case the data share points to a missing or broken drive !
Does somebody have a workaround solution for this case until this issue is solved ?