ejolson wrote: ↑
Wed Dec 18, 2019 5:29 am
We've probably had this discussion before, but for those who missed it, the following can and has happened to some people who were not careful with their automatic mirroring solution:
- The source drive fails and goes offline.
- The automatic mirror sees an empty mount point and deletes all files in the backup to match.
Yes I remember this "discussion" before
This has been mitigated in my mirroring script, checking if the mount is empty or not ( I think you helped me with this
also I did some actual test (on another SBC setup, source and target), while rsync in progress, pulled the plug (literally) on the source network share unit, rsync immediately stopped with errors.
after restoring the power to the other SBC source, and running the mirroring script manually, the mirroring proceeded properly (checking if there files/folders exist in the mounted volume, then proceed to update the target drive.)
on the file where the mirroring was interrupted, checking and running (actually playing the video file), there were no errors.
same test was done on the target unit (yup, I also yanked the power to the target SBC). then re-run the mirroring script manually upon power restoration... seemed OK.
tried some other "scenarios" that I can think of, but it held out OK...
(well except for some really nasty scenarios like immersing in muddy water [flood], flame thrower attack [house fire], etc, anyway power will be cut off immediately before those "nasty" scenarios has its run)
but that's on my setup.... I can't vouch for other's setup..... as I have no hand on those.....
Oh... forgot to mention.... there is another RPi NAS unit used for manual weekly mirroring.... just in case...