-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error for restore: lchown operation not permitted #655
Comments
Thanks for reporting this. Are the files restored and restic only complains about the error, or did it stop there? |
Yeah. |
Thanks for the clarification, that's a user-interface issue then. |
Partially. Nothing says we have to restore backups as root, right? Tar allows me to unpack a tar file where file are owned by someone other than myself and the world understand this behavior. Well, excluding Windows folks :P How about this output (no stacktraces) $ restic -r rest:http://qnap.**.********.**:8000 restore -t /tmp f5a13c51 -i /usr/sbin/e2label -i /usr/sbin/tune2fs
restoring f5a13c51 to /tmp
error for /tmp/usr/sbin/e2label: Lchown: lchown /tmp/usr/sbin/e2label: operation not permitted
error for /tmp/usr/sbin/tune2fs: Lchown: lchown /tmp/usr/sbin/tune2fs: operation not permitted
There were 2 errors |
Yes, that's what I have in mind, too. Warn the user that permissions could not be restored, but don't print a stacktrace and continue restoring. |
Restore operation from a root user backup does execute and all files appear to be restored however this error occurs if you don't run the restore operation as a root user.
Output of
restic version
Expected behavior
restore should function without error stack trace
Actual behavior
Steps to reproduce the behavior
This may be related to #244
The text was updated successfully, but these errors were encountered: