autorestic/docs/pages/cli/forget.md

12 lines
573 B
Markdown
Raw Normal View History

2020-05-17 14:52:30 +02:00
# Forget
```bash
2021-04-16 00:26:57 +02:00
autorestic forget [-l, --location] [-a, --all] [--dry-run] [--prune]
2020-05-17 14:52:30 +02:00
```
2024-02-09 14:18:06 +01:00
This will prune and remove old data form the backends according to the [keep policy you have specified for the location](/location/options/forget).
2020-05-17 14:52:30 +02:00
The `--dry-run` flag will do a dry run showing what would have been deleted, but won't touch the actual data.
2021-04-16 00:26:57 +02:00
The `--prune` flag will also [prune the data](https://restic.readthedocs.io/en/latest/060_forget.html#removing-backup-snapshots). This is a costly operation that can take longer, however it will free up the actual space.