expirebackups(1)

πŸ’– expirebackups β€” the manual page, but make it cute πŸ’–

okay bestie, welcome to expirebackups from the simple backup suite β€” she's the friend who goes through your closet and gently tells you which backups are so last season ✨


🌸 NAME 🌸

expirebackups β€” list old backups πŸ“‹

yes literally that's it. she lists. she does not delete. she's a looker, not a toucher πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

expirebackups [keep_this_many] path

✨ DESCRIPTION ✨

okay so here's the vibe 🌈 expirebackups goes snooping through the path you gave her, looking for backups that were made by simplebackup(1).

and then β€” and this is the part that matters β€” if she finds more than keep_this_many generations of a backup chilling in there, she prints the oldest files to stdout. that's it. that's the whole job. she just tells you, she doesn't touch anything πŸ™ˆ

which is actually iconic of her, because it means you get to decide what happens next. those printed files can then be deleted, and the result is that you keep exactly keep_this_many generations of every backup unharmed. nobody gets hurt. everyone stays cute. periodt πŸ‘‘


πŸ’… OPTIONS πŸ’…

  • keep_this_many β€” how many files you wanna keep of every backup. the default value is 4. (four is a vibe, four is a lifestyle, but you can change it πŸ“)
  • path β€” the path to check for backups. heads up though: she's picky. only files matching a pattern like hostname-YYYYMMDD.tar.gz are even considered backup files. everything else? not her business, not her problem, she's not looking πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

iykyk πŸ¦‹


πŸ‘‘ AUTHOR πŸ‘‘

expirebackups was written by Christian Garbs <mitch@cgarbs.de>. give him his flowers fr fr πŸ’


expirebackups is licensed under GNU GPL. free as in bestie, not free as in situationship ✨


ngl the safest workflow here is: run her, read the list, and only then go feral with rm. she's giving helpful, not giving destructive 🫢

Christian Garbs Β· version 0.1.6 Β· expirebackups(1)

that's the whole page bestie, tysm for reading, go forth and expire responsibly πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from