Files
restic-scripts/README.md
John Lancaster 17f9fa203e more work
2024-05-27 00:08:38 -05:00

43 lines
828 B
Markdown

# 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
```