Hello,
i tinkered with the recent Nextcloudpi image for a while now and came to the conclusion that the btrfs-backup strategy is not sufficiently usable, yet the cheap snapshots are very tempting.
To elaborate:
I set up a working “nc-snapshot-auto + nc-snapshot-sync” and everything worked fine for a while, so far - good job!
Unfortunately the connection to the backup server is a little wobbly… a couple of days ago the synchronization of a bigger blob of data failed due to a sudden disconnection. During my investigation i found the following:
Problems:
- A single disconnect breaks the automated synchronization
- The following run(s) aborts upon encountering the unfinished snapshot
- btrfs receive does not seem to be resumeable
- The following run(s) aborts upon encountering the unfinished snapshot
Workaround:
- manually delete conflicting snapshot(s) on the server and restart synchronization (or wait for cron to do the job)
Suggested fix:
- Automatically delete conflicting snapshot(s)
- Which would be a rather bad fix for poorly connected servers, for others it is necessary
- Abandon send/receive and instead use rsync --inplace + remotely invoking the snapshot mechanism for created snapshots
Best regards