Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script for expunging old releases from releases.nixos.org #397

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Mar 5, 2024

  1. Add a script to expunge old releases from releases.nixos.org

    Since releases are the main garbage collector roots, this is the first
    step in doing garbage collection of cache.nixos.org. Also, the
    releases themselves take up a non-trivial amount of storage (~32 TiB).
    
    Note: this script doesn't do anything yet, it just prints which
    releases/files would be deleted/moved to Glacier. To run:
    
       $ aws s3 ls --recursive s3://nix-releases > bucket-contents
       $ python3 ./expunge-releases.py
    edolstra committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    898789e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3967dbe View commit details
    Browse the repository at this point in the history