# Restic Scripts ## Environment Variables | Env Variable | Description | |--------------|--------------------------------------------------------------------------------------------| | `BACKUP_DIR` | Directory to back up | | `LOKI_URL` | Push URL for Loki. Should include the port and end with something like `/loki/api/v1/push` | ## Usage ### Python ```shell python -m restic.snapshots ``` ```shell python -m restic.backup ``` ```shell python -m restic.prune ``` ### Shell Scripts ```shell ./restic_command.sh snapshots ``` ```shell ./restic_backup.sh --tag manual ``` ```shell ./restic_command.sh forget --keep-last 1 ``` ```shell ./restic_command.sh restore ```