autorestic/docs/pages/cli/forget.md

12 lines
573 B
Markdown
Raw Normal View History

2020-05-17 12:52:30 +00:00
# Forget
```bash
2021-04-15 22:26:57 +00:00
autorestic forget [-l, --location] [-a, --all] [--dry-run] [--prune]
2020-05-17 12:52:30 +00:00
```
2024-02-09 13:18:06 +00: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 12:52:30 +00: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-15 22:26:57 +00: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.