Flashback - Simple backup to DVD/CD for Linux

Flashback is a combination of a brief C++ program and a couple shell scripts I put together to make it much easier for me to backup my Linux systems to CD or DVD.

Basically you pipe paths, one per line, into the flashback program and it splits the totality of its input up such that the size of the files is less than the size of the media you specify.

Then the bkup2media script uses afio and growisofs to create an archive and write it to a disc along with the manifest. The bkup2media script leaves the afio archive and the manifest file in the working directory you specify so you can trash all of it, or you can keep the manifest files around so it's easier to find things later.

The last piece of this is the manifest script which just provides a convenient front end to find.

So for example, to backup the directory /etc to CD's using the working directory /tmp/bkup:

manifest cd /tmp/bkup /etc

This creates a file named 'master' which you need not worry about and one or more files named manifest<number> where number is the number of the disk.

Then to burn the first disc's worth, put a CD in your drive and run this:

bkup2media /tmp/bkup 1

And if you had more discs you would continue on with:

bkup2media /tmp/bkup 2

And so forth These scripts may take a little bit of customizing for your system if they can't find afio or growisofs or something like that, but the whole setup is gloriously simple for how well it works.

Also the distribution does not include a Makefile, just a Boost Build V2 Jamfile, but there is only one source file so that's hardly a serious problem for people unfamiliar with Boost Build.

Browse the Source Download the Source

 
flashback.txt · Last modified: 2009/12/21 23:07 (external edit)
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki