diff --git a/content/guides/apt-snapshot-policy.md b/content/guides/apt-snapshot-policy.md index c4e8863145a5f4e29d8503fe1d18e3bff414fb53..f473c8128e9ff2b6dd62eecab278ea0ed6021ca4 100644 --- a/content/guides/apt-snapshot-policy.md +++ b/content/guides/apt-snapshot-policy.md @@ -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.*`.