-
Notifications
You must be signed in to change notification settings - Fork 18
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
Restore of a whole directory #5975
Comments
* fixed duplicity bad time calculation * added move action instead of rename in api to support file system boundaries NethServer/dev#5975
* avoid different timestamp from backup starts and ends NethServer/dev#5975
* fixed duplicity bad time calculation * added move action instead of rename in api to support file system boundaries NethServer/dev#5975
* avoid different timestamp from backup starts and ends NethServer/dev#5975
* fixed duplicity bad time calculation * added move action instead of rename in api to support file system boundaries NethServer/dev#5975
Test cases:
|
Only tested with restic:
|
Yes, now only the selected node on the tree structure will be selected because it is possible to select both files and directories
In which restore mode?
In which restore mode? |
The same problem also affects duplicity. |
IIRC, first case with overwrite, second case with both modes. |
@dnutan the issue is about restoring files contained in directories that have been removed. Both duplicity and restic, when you ask to restore a file, create the directory that contains the file with default permissions (i.e. root user and 700 mode). I bet that this scenario is uncommon: if you delete a directory, you restore a directory. With the restore interface that automatically selects file name (as it is now, without the fix discussed in this issue), you can't restore a directory and always fall in the wrong permission scenario. To correctly test this issue, you should select a directory if you want to restore a directory. |
packages:
Original state:
Backup engine: restic; Restore method: cockpit UI.
|
Since you deleted "dir/subdir/" you are supposed to restore "dir/subdir/" and find no problems at all. I think that we can't do much better than this (except having restic and duplicity behave differently). |
I see what you mean. Restoring directly with restic --include offers the same result. Same as reported in the link you gave us: restic/restic#1402 |
in
|
Besides the upstream permission/ownership issue dealt here, note the other inconsistency between what the UI reports (successful restore) and the file/directory not restored in new file mode (no overwrite). |
Restoring (overwrite) a directory from a restic backup leads to wrong permissions for the directory.
See https://community.nethserver.org/t/cockpit-backup-and-restore-data-not-working-correctly/13850/28 for details.
Steps to reproduce
Expected behavior
Directory permissions set like before deletion.
Actual behavior
Dir perms are root:root
Components
restic-0.9.6-1.ns7.x86_64
Thanks to Mario (@trentatre) and Marc (@dnutan)
The text was updated successfully, but these errors were encountered: