#!/bin/sh
set -eu

export RESTIC_REPOSITORY=sftp:alice@198.51.100.20:depot-restic
export RESTIC_PASSWORD_FILE=/home/alice/.config/restic/mdp

cd /home/alice
restic backup --quiet documents
restic forget --quiet --keep-daily 7 --keep-weekly 4 --keep-monthly 6 --prune
restic check --quiet
