Skip to content

Instantly share code, notes, and snippets.

@poddmo
Last active October 28, 2023 21:16
Show Gist options
  • Save poddmo/b6d93ed946e2617936946e9142019f7f to your computer and use it in GitHub Desktop.
Save poddmo/b6d93ed946e2617936946e9142019f7f to your computer and use it in GitHub Desktop.
Backup media archiving and cataloguing tips

Overview

My notes for recovering, cataloguing and archiving old backup media

Optical Media: CDs and DVDs

References

Care and Handling of CDs and DVDs: A Guide for Librarians and Archivists: https://www.clir.org/pubs/reports/pub121/ https://en.wikipedia.org/wiki/CD-R

Drive and media info

View drive capabilities: cd-drive

Audio CDs

Rip Audio CD's

abcde -V -G -o flac

Rip multi-disc Audio CD's

abcde -V -G -o flac -W 1
abcde -V -G -o flac -W 2

Read scratched audio CDs:

sudo cdda2wav -vall -D /dev/sr0 speed=4 cddb=0 -B

If that doesn't work and your drive supports reading C2 pointers, try:

cdda2wav -vall paraopts=proof,c2check speed=4 cddb=0 -B

This does a lot more than the latest cdparanoia version did. Please read the man page to understand the error reports from libparanoia.

Use Picard to rename and apply metadata tags to wav files

Batch convert wav to flac, preserves metadata and embedded cover photos (Picard will add the cover photo to the wav):

for i in *.wav; do ffmpeg -i "$i" -c:a flac "${i%.*}.flac"; done

I found there were some issues due to unicode metadata and filenames but running the results back through Picard fixes metadata and filenames

Data CDs and DVDs

https://www.bitsgalore.org/2015/11/13/preserving-optical-media-from-the-command-line

Recovering deteriorated optical media

Work on strategies for recovering deteriorated optical media, like the 5 cheap, unreadable CDs that I'd like to recover if possible

Cheap and/or no-name brand CDs aren't detected by drive. These CDs are nearly transparent. Maybe coloring the label side with a sharpie, dark paint, or gluing aluminium foil may help?

Floppy and hard disks

These media get imaged and recovery is done on the disk images

Catalogue and de-duplication

Find duplicates

fslint czkawka rdfind

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment