Skip to content
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 in place #4575

Open
luckydonald opened this issue Nov 30, 2023 · 3 comments
Open

Restore in place #4575

luckydonald opened this issue Nov 30, 2023 · 3 comments
Labels

Comments

@luckydonald
Copy link

Output of restic version

https://restic.readthedocs.io/en/latest/050_restore.html

What should restic do differently? Which functionality do you think we should add?

There should be an --inplace parameter to allow restic to restore it's files in place.
Basically what a git checkout would do.

What are you trying to do? What problem would this solve?

I need to restore a snapshot, keeping the folder structure exactly as it was recorded as.
However it stores over different harddrives, C:\, G:\ and F:\. In other words, there's no parent folder those pathes are all relative to.

@luckydonald
Copy link
Author

luckydonald commented Dec 1, 2023

Also with snapshots like the following (450 GB total, but only 400mb changes) this would mean a big improvement, if I can get the diff applied only.

luckydonald@luckydonald-PC MINGW64 G:\Sicherung\restic\restic
$ ./restic_0.13.1_windows_amd64.exe --verbose backup --repo ../Backups/Hydrus/ --password-file passwords/Hydrus.txt --tag v554 --tag after-upgrade-before-run --tag after-upgrade --tag before-run --tag full --tag data --tag hydrus --files-from filelists/Hydrus.txt
open repository
lock repository
load index files
using parent snapshot af620963
start scan on [X:\Hydrus Network\]
start backup on [X:\Hydrus Network\]
scan finished in 21.925s: 383260 files, 454.287 GiB

Files:          38 new,  3396 changed, 379826 unmodified
Dirs:            1 new,   225 changed,   584 unmodified
Data Blobs:    573 new
Tree Blobs:    227 new
Added to the repo: 379.107 MiB

processed 383260 files, 454.287 GiB in 0:56
snapshot 89d76895 saved

@rawtaz
Copy link
Contributor

rawtaz commented Dec 1, 2023

It seems that you put two different feature requests in the same issue here. The second post is probably a duplicate of #2662.

@luckydonald
Copy link
Author

Yeah, the second part is a duplicate of that linked.
But also probably something which should be done before tackling this, as otherwise this would be inefficient as heck - which is why I listed it here as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Todo
Development

No branches or pull requests

3 participants