Backups to Non-Traditional Media

Even though you have the ability to create your own filesystems on CD- or DVD-R/RW drives and spare hard disks, you should still stick with an archiver program like tar to make your backups. The primary reason is simple: tar preserves all file attributes, including permissions and ownership. In addition, it is easier to manage full and incremental backups with tar.

If you choose to make backups with cdrecord (see Creating a Filesystem Image and Writing a CD, your best bet is probably to write a compressed tar archive directly to the CD or DVD with a command like this:

tar zcf - | cdrecord dev=dev cdrecord_args -

You may need to experiment with the speed option to cdrecord, because the archiving command may not produce ...

Get How Linux Works now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.