bupstash icon indicating copy to clipboard operation
bupstash copied to clipboard

Repository copy safety check

Open andrewchambers opened this issue 3 years ago • 1 comments

When a user copies a repository with rsync or cp they do not also update the gc generation and repository id, a user could accidentally cause data loss by copying repositories back and forth without understanding the nature of gc-generation cache invalidation.

We could perhaps provide proactive safety mitigations for such situations, what they would be is still uncertain. In general a user would be better off using 'bupstash sync' to completely eliminate these risks.

andrewchambers avatar Mar 15 '22 01:03 andrewchambers

I think the fix is going to be invalidate caches if the repository inode changes.

andrewchambers avatar Feb 03 '23 09:02 andrewchambers