From 69cfa09a3dd47568cc6df7883fb59e6076d7a15d Mon Sep 17 00:00:00 2001 From: spektr Date: Fri, 27 Nov 2026 07:20:34 +0100 Subject: [PATCH] CT 114: restic -o sftp.command hinter den Subcommand verschoben restic 0.18: -o ist ein Befehls-Flag ('restic snapshots -o ...'), vorher kam 'unknown command' und ssh erhielt kaputte argv. Check-Service ebenso auf Flag-Variante umgestellt. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe --- .../templates/litecoin-restic-check.service.j2 | 4 +--- .../templates/litecoin-wallet-backup.sh.j2 | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-restic-check.service.j2 b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-restic-check.service.j2 index 894ee3f..a2de398 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-restic-check.service.j2 +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-restic-check.service.j2 @@ -3,8 +3,6 @@ Description=Monthly restic check of the Litecoin wallet backup repository [Service] Type=oneshot -Environment=RESTIC_REPOSITORY={{ litecoin_backup_repository }} -Environment=RESTIC_PASSWORD_FILE={{ litecoin_backup_password_file }} Environment=SSH_AUTH_SOCK= -ExecStart=/usr/bin/restic -o sftp.command="ssh -F {{ litecoin_backup_ssh_config }}" check --read-data-subset=5% +ExecStart=/usr/bin/restic check --read-data-subset=5% -r {{ litecoin_backup_repository }} -o sftp.command="ssh -F {{ litecoin_backup_ssh_config }}" --password-file {{ litecoin_backup_password_file }} Nice=10 diff --git a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-wallet-backup.sh.j2 b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-wallet-backup.sh.j2 index 6ae9991..8dc7d05 100644 --- a/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-wallet-backup.sh.j2 +++ b/proxmox/lxc/ct-114-litecoin-wallet/ansible/roles/litecoin_backup/templates/litecoin-wallet-backup.sh.j2 @@ -21,12 +21,12 @@ today="$(date +%F)" /opt/litecoin/bin/litecoin-cli -conf=/etc/litecoin/litecoin.conf \ backupwallet "${backup_dir}/wallet-${today}" -/usr/bin/restic -r "$RESTIC_REPOSITORY" \ +/usr/bin/restic backup "$backup_dir" \ + -r "$RESTIC_REPOSITORY" \ -o "sftp.command=$SFTP_COMMAND" \ - --password-file "$RESTIC_PASSWORD_FILE" \ - backup "$backup_dir" + --password-file "$RESTIC_PASSWORD_FILE" -/usr/bin/restic -r "$RESTIC_REPOSITORY" \ +/usr/bin/restic forget --keep-daily {{ litecoin_backup_keep_daily }} --prune \ + -r "$RESTIC_REPOSITORY" \ -o "sftp.command=$SFTP_COMMAND" \ - --password-file "$RESTIC_PASSWORD_FILE" \ - forget --keep-daily {{ litecoin_backup_keep_daily }} --prune + --password-file "$RESTIC_PASSWORD_FILE"