Multi-Disk CD Backup Solutions for Linux?
waldowaldo asks: "I have looked high and low for a good way to back up a server hard drive to CDs, but cannot find anything. There are good programs for collecting files and writing them to a single disk (such as cdrecord), but nothing for multiple CDs (that I can find). Anyone seen anything that'll do this?"
...is not a problem if you can cope with thext/command line only interface. All you need is tar (GNU version), mkisofs, cdrecord, and 700 MB free hard disc space.
/home and have 700MB free on /tmp (and an empty /tmp/CD directory). You only call the CDBACKUP script.
/tmp/CD/backup.tar \
/home
/tmp/CD
As I currently do not have access to my backup PC I only can give a rough outline of the two scripts that have to be made (here I assume you want to backup
#!/bin/sh
#-----------CDBACKUP------------------
tar cvf
--multi-volume \
--tape-size=610MB \
--new-volume-script=CDBACKUP.BURN \
CDBACKUP.BURN
#!/bin/sh
#------------CDBACKUP.BURN-------------
# ! please adapt properly to your setting !
cd
mkisofs | cdrecord dev=0,5,0 -
rm backup.tar
Have you looked at Disc Backup - http://discbackup.home.dhs.org/ ?
I haven't tried it yet so I can't vouch for it but I downloaded it a while ago and it claims to do backups across multiple disks.
Bob
With a proper script (basically the same ones as for tar -- see previous post), you can backup using dump and cdrecord. You should be able even to pipe the output of dump directly into cdrecord, but this is risky unless you have a hi-speed computer (and no other processes risk to interrupt you burning process - although this is a problem with any tool, not dump related). Anyway you can check the dump home page here: perso.cybercable.fr/pop.
I had occasion to need a transport medium for several large video files approaching 1.8G in size each. While I could have always mailed a tape, I decided to do something more novel. CDROM-RAID0
I created three 620M files (dd if=/dev/zero blah..), hooked them to loopback devices, mdadd'ed and mdran them, then slapped a ext2 fs across them. After writing the video to the RAID volume (Don't forget to sync!) I burned each file to a CD-RW, and included a short mount/losetup/mdrun/etc script on the first CD.
The best part about the arrangement was that you could play the high-bandwidth video directly from the associated CD's, with no intermediary layer or jacking the buffer up.. (The 'seek' lag was roughly double normal, but I could pull a true 40X off of the three 16X(max) CDROM drives.)
If you want more implementation detail, just ask!
.sig: Now legally binding!
Hang on a second... whats with all this complicated stuff? Whats wrong with just splitting your server drive into a number of appropriately sized chunks and then burning away? If you have some mega files then you might want to cut them up, but I dont see much problem with the general idea.
:) Dont hate me cause I'm dumb...
Just fashion yourself a nice script that starts from a given directory and then adds files in logical order until it hits 650MB, then feeds the batch to the burner and continues. If you wanted to be flashy you could also have a min. size parameter. Tell it nothing less than 640MB and then it can split the last file if its too big. Just cut and store it in some temp space, then add the second half to the list for the next CD, delete it when youre done...maybe even include a reconstruction script... and wham! Bob's your uncle, instant backups.
If this is for backup purposes it doesn't really matter anyways, I mean if your server dies you'll be more than happy to play with a couple of files to reconstruct them manually, and do other stuff! Youll just be glad you have a backup, so I guess it doesn't really have to be all that streamelined. (Then again, if you have 100gigs to backup it might be worth your time to put in the effort for a script to reconstruct them when the need arises...)
I'm sure the solution cannot be that simple -- either you are looking for something more advanced, or, whats more likely is that I've totally missed the point, and will get a few friendly flames in the time that it takes for this message to get moderated down to -4.
Have a nice day
Sometimes backing up complete file systems by just copying a partition using dd can be really convenient, but usually the resulting file doesn't compress well, esp. when your partition is not almsot full. To avoid that, you can simlpy write a file with all zeros to the file system until it is full and delete it again. Your resulting compressed file is about the same size as one created by tar.