summaryrefslogtreecommitdiffstats
path: root/roles/backup/meta
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-21 22:18:54 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-21 22:45:48 +0200
commitf63a92f908e9e79ed2249a0fdbe7b815084ce75c (patch)
treeb34058f6321db93244b23305eef54ac2a4c912f2 /roles/backup/meta
parent63e99d3e642eb8b8fdcba5cc9a083edfc55a8dfe (diff)
Add restore capabilities to backup role with --tags restore call
Co-Authored-By: Claude.ai
Diffstat (limited to 'roles/backup/meta')
-rw-r--r--roles/backup/meta/argument_specs.yml15
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/backup/meta/argument_specs.yml b/roles/backup/meta/argument_specs.yml
index 8dd86192..9219d37c 100644
--- a/roles/backup/meta/argument_specs.yml
+++ b/roles/backup/meta/argument_specs.yml
@@ -55,3 +55,18 @@ argument_specs:
type: "str"
description: "System group for the backup user"
default: "backup"
+ backup_restore_id:
+ type: "str"
+ description: >-
+ Snapshot ID to restore, or "latest". Only used with --tags restore.
+ To list available snapshot IDs, run on the target host: source
+ /etc/credstore/{{ backup_name }}-backup.env, export
+ RESTIC_REPOSITORY="$BACKUP_REPO" RESTIC_PASSWORD="$BACKUP_PASSWORD"
+ AWS_ACCESS_KEY_ID="$BACKUP_ACCESS_KEY_ID"
+ AWS_SECRET_ACCESS_KEY="$BACKUP_SECRET_ACCESS_KEY", then run
+ restic snapshots
+ default: "latest"
+ restore_target:
+ type: "str"
+ description: "Directory to restore snapshot contents into. Only used with --tags restore"
+ required: false