From c54a442b60118097b1f421d9a16be3a2ad1c1083 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: May 18 2021 16:48:49 +0000 Subject: README: update notes for how to drain rpms from a release --- diff --git a/README.md b/README.md index 9093333..129fd8b 100644 --- a/README.md +++ b/README.md @@ -210,3 +210,20 @@ for release in $RELEASES; do done popd; popd ``` + +# Rough notes for draining a repo + +Once a release is EOL we don't need to keep around the files, but we +do want to make it such that people are still able to rebase from +those EOL releases. Let's remove all the RPMs from the repo for that +release, but leave the repodata in place. Something like: + +``` +aws s3 rm s3://fedoraproject-updates-archive/fedora/32/ --recursive --exclude '*' --include '*rpm' --dryrun +``` + +After running the delete you can verify only the repodata is left with: + +``` +aws s3 ls s3://fedoraproject-updates-archive/fedora/32/ --recursive +```