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

List backup repositories of a module #749

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

DavidePrincipi
Copy link
Member

@DavidePrincipi DavidePrincipi commented Nov 13, 2024

  • Implement a base list-backup-repositories action for modules. Returns the list the Restic repositories of the module instance, from different backup destinations. The action output format is the same of cluster/list-backup-repositories.
  • Add agent.prepare_restic_command() function to the agent library. It is similar to the existing run_restic_command(), but it returns just a command line and environment dict without executing any command.
  • Add "progress_callback" argument to agent.run_restic(), to trace the Restic command progress in UI
  • Fine-trace of Restic restore progress in cluster/restore-module action

Refs NethServer/dev#7072

Return the list of backup destinations with a Restic repository for the
current module.
Split the run_restic() function to ease custom subprocess invocation.
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
@DavidePrincipi DavidePrincipi self-assigned this Nov 13, 2024
Run Restic backup faster with "--no-scan". This option avoid calculating
the backup size in advance. This is a time consuming operation,
unnecessary for a background job.
Add an optional "progress_callback" argument to agent.run_restic()
function, to provide UI feedback of Restic's progress.

Restic's output must switched to JSON format with "--json" argument.
Capture Restic progress during the restoration of a module instance.
Tune progress intervals of cluster/restore-module action.
github-actions bot pushed a commit that referenced this pull request Nov 15, 2024
github-actions bot pushed a commit that referenced this pull request Nov 15, 2024
While Restic backup is invoked in background most of times, the UI still
allows to run the backup immediately. In that case, a detailed backup
progress feedback is needed.

- Add fine-grained backup progess trace to module-backup command
- Run the backup from UI directly with module-backup command
- If module-backup runs interactively, skip progress calculation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants