Skip to content
Commit e55249fe authored by Cyril Brulebois's avatar Cyril Brulebois
Browse files

Time-based snapshots: add script to remove expired snapshots.


After a few days, unless the Valid-Until field was specifically bumped
for a given snapshot, snapshots do expire and need to be cleaned up.
This new script detects snapshots directories for a given archive
directory, checks which snapshots are no longer valid, and removes them
from the reprepro database.

XXX: The actual subdirectory removal hasn't been implemented yet.

This script features a --dry-run flag.

Signed-off-by: default avatarCyril Brulebois <cyril@debamax.com>
parent 9243296f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment