# Rastic Kommandos

#### Alle Snapshots anzeigen lassen:

```bash
export RESTIC_REPOSITORY=/mnt/synology-backup/nextcloud
export RESTIC_PASSWORD_FILE=/root/.restic-password

restic snapshots
```

#### Spezifischen Teil aus einen bestimmten Snapshot wiederherstellen

Vorher habt Ihr die SnapshotID mit dem Kommando "Alle Snapshots anzeigen lassen" identifiziert!

```bash
restic restore SNAPSHOTID \
  --target / \
  --include /home/dockeruser/docker/nextcloud/nginx
```

#### Alle Backups in Rastic löschen

```bash
restic forget --prune --keep-last 0
```