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 <vibe@mistral.ai>
This commit is contained in:
+1
-3
@@ -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
|
||||
|
||||
+6
-6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user