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

Caching #16

Closed
damoclark opened this issue Jul 29, 2022 · 1 comment · Fixed by #19
Closed

Caching #16

damoclark opened this issue Jul 29, 2022 · 1 comment · Fixed by #19
Labels
enhancement New feature or request

Comments

@damoclark
Copy link

Something else to consider is for restic-browser to cache results when you explore the backup directory tree structure to view files. At the moment, if you return to directories you have visited already (even going back up to parent directory), the reload of the files is just as slow as the first. The delay is not trivial - at least for me and I'm working with a restic repo that is on a local disk.

It might need to be an option to enable or not, as some users may not want to cache the file listings and directory structure on disk where they are using your tool, for security/privacy reasons. They would have to endure the lag when navigating to different directories.

I do love that switching between snapshots keeps the directory view on the same directory. This is great when you need to restore a file from a particular directory, but not sure which snapshot to pull it from. Very nice! This is something that backintime does. It is a great GUI backup/restore tool to take some inspiration from.

Damo.

@emuell
Copy link
Owner

emuell commented Jul 31, 2022

That's a great idea. When caching the contents in memory, I think we don't even need an option to disable the cache, as no sensitive data is written to disk. I'll give this a try in the next days.

Also wasn't aware of https://github.com/bit-team/backintime. It looks really nice and is indeed something to get some inspiration from, as it serves a similar purpose.

@emuell emuell added the enhancement New feature or request label Jul 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants