Skip to content

restic restore of externally created snapshot fails in Docker due to lchown: invalid argument #610

Answered by garethgeorge
virus4sepp asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm -- it looks like you're running into something related to restic/restic#655 . At the time, the reported issue is a user trying to run a restore that chown's files without root.

In docker, it's more likely that this is a problem with how user IDs are mapped into the container.

Backrest is supported in docker because it's by far the easiest way to get started with backups -- and I'd rather people have easy to setup backups than no backups at all :) but there are a number of footguns especially with user ID mapping and filesystem permissions when using a virtual filesystem layer in between restic the dataset.

My suspicion is that there are uid's / gid's specified in the backup that don't…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@virus4sepp
Comment options

Comment options

You must be logged in to vote
1 reply
@virus4sepp
Comment options

Answer selected by garethgeorge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants