backup icon indicating copy to clipboard operation
backup copied to clipboard

Backup Point Loses Integrity Status when Replicated to External Storage

Open jxmx opened this issue 3 years ago • 4 comments

I've been trying to troubleshoot some strange behaviors I've been seeing with the backup app. (e.g. #163, #114). I completely reset the backup app yesterday and started over with a full. My AppData location is within my NextCloud primary filesystem location - /data/nextcloud. I have an External Storage location defined as /data/nextcloud-backups/restore-points.

Yesterday I manually kicked off a full backup which completed successfully with a green checkbox and state of "unpacked". I then packed it manually and it maintained a green checkbox. Overnight, the logic that replicates it to the external storage happened as expected. When the replication was complete and I checked this morning, the backup status now has a issue of "cannot confirm integrity". I ran a backup:point:details on both the local and the external copy of the point and both verified fine. I've done nothing else manually to the backups.

I think this is different than #114.

1

2

jxmx avatar Jan 13 '22 14:01 jxmx

Please click on the red exclamation point - it should show that local is green and external is red. seems like a bug to me

Bildschirmfoto 2022-01-19 um 22 09 47

mastermns avatar Jan 19 '22 21:01 mastermns

That's what I'm seeing.

image image

Interestingly, it also deleted the local copy of backup even though retention was set to 1 copy...

jxmx avatar Jan 19 '22 21:01 jxmx

After working on #177, I've discovered that the logic inside of PointService.php in the function getRPFromInstances does not implement the proper checks for an instance type of external:NN and also looks like ExternalFolderService.php doesn't have comparable verifyPoint() function to execute the checks.

jxmx avatar Feb 07 '22 21:02 jxmx

Real issue in #184. Leaving this open in case someone finds it.

jxmx avatar Feb 07 '22 21:02 jxmx