-
Notifications
You must be signed in to change notification settings - Fork 138
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
FR: Use minimal number of levels during restore #441
Comments
If this is really needed, I'd make it a checkbox. E.g. "Strip common parent folders before extracting" |
This would be very helpful. Or how do you experienced Vorta users do a recovery? Are you able to recover your data in one step without a temp folder? Very interested in this. Thank you. ? |
If you extract to "/" you don't need a temp folder |
extracting to non-empty target directories might lead to a mixup of present files and restored files. |
@Hofer-Julian
Enhancement:
This way we would have a clear restore without losing anything. And this would be a fast way to decide what files, that were not in the backup, could be deleted, because we have all this files in one folder. We do not have to search them manually by comparing the files in the backup with the files in the target manually.
Or you nevertheless implement the enhancement proposed in this thread with the checkbox and combine it with my enhancement requests 1) and 2). |
@Golddouble that pretty much sounds like overengineered, unexpected behaviour. The task of a restore is to restore files, not move existing files around on your filesystem. And as it is just "unpacking" a backup archive, you can not expect sync-like behaviour (like deleting existing files or directories) either. So the easiest and most reasonable way to deal with that is to extract into an empty directory. If you want your files elsewhere afterwards, you can still move them. |
I agree. Other suggestion for my This files should not be moved. But nevertheless Vorta should save a list with the files in the folder of the repository where the backup is stored. For example in ... The list should be in a *.txt file in the form of Regex syntax. For example:
So we can then copy this Regex syntax from this *.txt file into a search program like FSearch and become then exactly the list with this files. Then we can delete them in one step or individual files or we can move them. Maybe when a restore process is finished, Vorta could pop up a message like: -enhancement suggestion 2)
This would not be possible with these files, because they are overwritten by the restore process. |
borg extract
recreates the whole file tree of the backup in the current working directory.These are sensible defaults for system backups, but maybe less suitable for Vorta which is focused on user data. This is discussed in #431 and borgbase/vorta.borgbase.com#4.
I suggest to change Vorta's current behaviour, so that uses the common root of all files/directories to extract as starting point.
An alternative would be a checkbox, but I personally would like to reduce the number of options to a minimum.
The text was updated successfully, but these errors were encountered: