generated from NethServer/ns8-kickstart
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Selective restoration of IMAP folders #139
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The mailbox list is needed to quickly find an IMAP folder path inside a given backup snapshot. Maildir path-encoding format can be obtained with the "doveadm mailbox path" command.
- Require core 3.3.0+ - Obtain the IMAP folder list for the selected user from a backup snapshot
- Retrieve the partial backup from Restic. - Import data into user's Maildir. - Disable quota if limit is exceeded. Added "restore-folder" command to Dovecot's container, and related documentation.
DavidePrincipi
changed the title
Backend actions for selective restoration of IMAP folders
Selective restoration of IMAP folders
Nov 13, 2024
andre8244
approved these changes
Nov 13, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple of typos. Didn't understand every single line but overall it LGTM 🙈
imageroot/actions/restore-backup-content/50restore_backup_content
Outdated
Show resolved
Hide resolved
TODO: test the Public folder restoration |
The Public mailbox is restored into itself, as a subdir of "Restore folder".
Use agent.run_restic() to capture progress. The agent.run_restic() can now capture the JSON output by itself and invoke a callback function. The same function can intercept the last JSON message from Restic and return it in the action output.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
seek-snapshot-contents
allows to search the IMAP folder list of a given user from a past backup snapshotrestore-backup-content
creates a "Restored folder" under the user's IMAP tree, extracts the selected folder from backup and puts it under "Restored folder".Refs NethServer/dev#7072