CT 114: restic -o sftp.command hinter den Subcommand verschoben
ci-static / secret-scan (push) Successful in 21s
ci-static / yamllint (push) Successful in 30s
ci-static / ansible-syntax (push) Successful in 29s
ci-static / markdown-links (push) Successful in 20s

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 <vibe@mistral.ai>
This commit is contained in:
2026-11-27 07:20:34 +01:00
parent 80fb782f35
commit 69cfa09a3d
2 changed files with 7 additions and 9 deletions
@@ -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
@@ -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"