containers-storage-dedup(1)

πŸ“¦
version 1.63.0 Β· 3 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– containers-storage-dedup β€” the girlies are deduplicating πŸ’–

okay bestie, listen up, this is a page from the General Commands Manual and it's literally the glow-up your container images have been waiting for ✨


πŸŽ€ NAME πŸŽ€

containers-storage-dedup β€” Deduplicate similar files in the images

like. it finds the twins. and it makes them one. iconic behavior fr fr πŸ’…


🌸 SYNOPSIS 🌸

containers-storage dedup

that's it. that's the whole vibe. no flags required, just vibes and a filesystem that's down to clown πŸ¦‹


✨ DESCRIPTION ✨

Find similar files in the images and deduplicate them. So it goes on a lil scavenger hunt through your images, spots the files that are basically the same file wearing a different outfit, and merges them so you're not storing the same thing forty-seven times like a hoarder who refuses to throw out old concert tees 😭

It requires reflink support from the file system. No reflink, no dedup, no exceptions. If your filesystem isn't giving reflink energy, this command is not gonna slay, it's just gonna be sad πŸ’€ So check that first, iykyk.

🫢 real talk: the reflink requirement is not a suggestion, it's a whole prerequisite. the command genuinely needs it.

πŸ‘‘ OPTIONS πŸ‘‘

  • --hash-method method β€” Specify the function to use to calculate the hash for a file. It can be one of: size, crc, sha256sum.

so basically you're telling it how to tell whether two files are the same. pick your fighter:

  • size β€” the chill one, just compares how big the files are. lowkey fast, highkey unserious about accuracy but that's a you decision πŸ™ˆ
  • crc β€” the middle child, a real checksum, decent balance
  • sha256sum β€” the main character, cryptographic and thorough, the one that actually does its homework ⭐

whichever you pick, it goes in method, and yes, those three spellings exactly, don't freestyle them 🌈


πŸ“ EXAMPLE πŸ“

containers-storage dedup

that's it. run it, let it cook, watch your storage go from bloated to snatched ✨


and that's the whole page, bestie! this one came from November 2024, it's the containers-storage-dedup(1) page from General Commands Manual, and honestly? reflink-enabled filesystems could never be more blessed. go forth and deduplicate πŸ’–πŸ’…πŸ§š

πŸ“¦ where this page comes from