From f63a92f908e9e79ed2249a0fdbe7b815084ce75c Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 21 Jul 2026 22:18:54 +0200 Subject: Add restore capabilities to backup role with --tags restore call Co-Authored-By: Claude.ai --- roles/backup/meta/argument_specs.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'roles/backup/meta/argument_specs.yml') 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 -- cgit v1.2.3