be7b64f8e41ff69c89d0b7aa304b1d24466ca6e6
Restic Scripts
Environment Variables
Recommended to put these in the relevant ~/.bashrc file
| Env Variable | Description |
|---|---|
BACKUP_DIR |
Directory to back up |
RESTIC_REPOSITORY |
Directory for the restic repository. This is usually on a mount point made from Proxmox |
RESTIC_PASSWORD |
Password for the restic repository |
LOKI_URL |
Push URL for Loki. Should include the port and end with something like /loki/api/v1/push |
Usage
Python
python -m restic.snapshots
python -m restic.backup --tag manual --project joplin --services app,db
python -m restic.prune
Shell Scripts
./restic_command.sh snapshots
./restic_backup.sh --tag manual
./restic_command.sh forget --keep-last 1
./restic_command.sh restore
Description
Languages
Python
100%