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"