-
Notifications
You must be signed in to change notification settings - Fork 70
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
Can we avoid creating empty folders when initializing a repo? #1315
Comments
Thanks for opening the issue @AlphaJack. Can you please be more specific what is your exact problem with having this 256 empty paths? In fact, yes we could omit creating these folders and just create them on-demand. However, that would loose compatibility with restic which (IIRC) is not working when the paths are not present - as rustic is. So, we can adapt rustic to be more resilient when those paths are note present (by creating them when they are needed), but if we initialize a new repo without creating these paths we get compatibility problems... |
Thank you for the clarification, I was asking because uploading ~255 empty folders with RClone seemed slow. But if Restic cannot handle missing folders, then I guess it's better to leave things as they are, to maintain compatibility. |
Actually I think it won't. But you can open issues for the errors you get when removing empty dirs - I'll fix them in the next release(s)... |
I'm getting this error with most operations (backup, prune, forget), but no further information about which file or directory is involved:
or
Can we also show the missing file or folder name in the error message? EDIT: I don't think it's related to missing empty folders, but having the folder in the error message would be really nice! |
- Update error messages for file operations in the `LocalBackendErrorKind` enum. - Refactor the `ReadBackend` and `WriteBackend` implementations in the `LocalBackend` module to handle file opening errors more accurately. - Add error variants `OpeningFileForPartialReadingFailed` and `OpeningFileForWritingFailed` to provide specific information about file opening failures. - Create parent directory if it does not exist before opening the file for writing. Fixes #rustic-rs/rustic#1315 Signed-off-by: simonsan <[email protected]>
Is it needed to create all 256 data/ folders when initializing a repo? Or could they also be created when needed?
Borg:
Rustic:
The text was updated successfully, but these errors were encountered: