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

Restic restore include-file/exclude-file switches #4781

Open
akrabu opened this issue Apr 27, 2024 · 1 comment · May be fixed by #4811
Open

Restic restore include-file/exclude-file switches #4781

akrabu opened this issue Apr 27, 2024 · 1 comment · May be fixed by #4811

Comments

@akrabu
Copy link

akrabu commented Apr 27, 2024

Output of restic version

restic 0.16.4 compiled with go1.21.6 on darwin/amd64

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

It would be helpful if the include-file, --iinclude-file, --exclude-file, and --iexclude-file switches existed for the "restore" function.

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

I recently needed to restore a bunch of different files that got deleted. About 1600 of them, in random places. When I did "restic diff" I could easily get a list of all the files that were deleted - but I don't have an easy way to feed that into Restic to restore just those files.

My options are to restore a large swath of files to get a few, or to run restic restore on each file individually - which seems impractical with that many files.

Did restic help you today? Did it make you happy in any way?

Restic rules! ✌️

@MichaelEischer
Copy link
Member

Thanks for the suggestion. I agree that restore should offer those options in a way similar to the backup command. Anyone up for a PR?

konidev20 added a commit to konidev20/restic that referenced this issue May 19, 2024
@konidev20 konidev20 linked a pull request May 19, 2024 that will close this issue
8 tasks
konidev20 added a commit to konidev20/restic that referenced this issue Jun 1, 2024
konidev20 added a commit to konidev20/restic that referenced this issue Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants