Skip to content
Snippets Groups Projects
Commit ee7a1b0a authored by Ariel D'Alessandro's avatar Ariel D'Alessandro
Browse files

guides: apt-snapshot-policy: Add snapshot policy example


The example is missing, add it.

Signed-off-by: default avatarAriel D'Alessandro <ariel.dalessandro@collabora.com>
parent 9b4b9dac
No related branches found
No related tags found
1 merge request!464guides: apt-snapshot-policy: Add snapshot policy example
Pipeline #393805 passed with warnings
......@@ -91,7 +91,19 @@ will be dropped on each run.
#### Example policy configuration
For example, the above policy:
```
$ cat /srv/obs/aptly/snapshot.policy.d/apertis.v202x.yaml
prefix: shared/apertis/public/apertis
distribution: v202.*
retention:
days_range: 7
weeklies_range: 4
monthlies_range: 6
keep:
- .*/202104.*
- v2022/20220613T012229Z
- v2023/20230614T142755Z
```
* Apply this policy to all snapshots from prefix `shared/apertis/public/apertis`
and distribution matching regex `v202.*`.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment