To back up my audio CD collection from the commandline I start by installing the cdrtools
package rather than use the Debian fork cdrkit
. This replaces parts of the cdrkit
package so just be aware that some adjustment may be required with other burning applications. To install Brandon's burning PPA:
sudo add-apt-repository ppa:brandonsnider/cdrtools
sudo apt-get update
sudo apt-get install cdda2wav cdrecord mkisofs
Next to test for the exact address of my CD drive:
cdda2wav -scanbus
On my system this gives 0,0,0
so this address is used to rip the CD and also perform a CDDA lookup:
cdda2wav dev=0,0,0 -vall cddb=0 -B -Owav
Then all that is required is to burn the files to a new, blank CD:
cdrecord dev=0,0,0 -v -dao -useinfo -text *.wav
And repeat, until I have safely backed up my collection. I have used cdrdao
in the past but this technique has worked flawlessly for some time now...
References:
brasero
, it has a command line API as well, still I can't give you an answer on how to, never used it myself yet.