-   Linux - Software (
-   -   Best way to back up about 200 GB of files to DVDs? (

Electrode 09-05-2003 07:20 PM

Best way to back up about 200 GB of files to DVDs?
Recently, I decided to buy a DVD-RW drive to take the place of the CD-RW in my NAS box. It appears to be working as it should. I found out that cdrecord doesn't work with DVDs so I set up dvdrtools, a fork of cdrtools with DVD writing support.

Anyway, what I would like to know is, what would be the best way to back up the contents of the NAS box, about 200 GB? It is a nearly impossible task to manually go through thousands of directories, adding up 4.7 GB chunks and running them through mkisofs. I tried using a cdrtools frontend, "CD Bake Oven", but it's size display becomes inaccurate around the 4 GB mark, making it useless. I would be open to suggestions for other such frontends.

The easiest way I can think of is just making a spanned tar, but that would require me to spend a few hours swapping disks just to get to a single file. Not something I want to do.

Suggest away. :)

RolledOat 09-05-2003 08:27 PM

Hmmm, interesting problem. Here's a thought. Navigate to the top of
the dir to be backed up.

du -k > verylargelist
Import it into openoffice. It is in the format
OpenOffice can import into a spreadsheet using fixed format to get the size and dirname into two columns.

I would then insert a column before the first line, and have a formula copied into every two in the format

1 0+B1 size 3 /Dirname
2 A1+ B2 size 3 /Dirname
3 A2 + B3 Size3 /Dirname

You could then, and this is going to be one mother of a spreadsheet, :),
but then go down the first column till you hit about 5Gbytes.
You can then export all the rows up to that point to a flat file.
Use the dirnames as an input into tar.

May take a while, but you get the index of all files to put on the DVD
in the form of the tar create script. I can't think of a better way to
back it all up and be able to extract the files as you needed them.

Well, if nothing else, maybe I gave you something else to think about.


Electrode 09-06-2003 03:42 PM

Thanks for the suggestion RolledOat. :)

However, I have come upon another solution that seems to be working quite well.

First, make a directory on a filesystem whose free space is at least the total size of the data to be backed up + the size of the media.

Second, switch to the top directory of the tree to be backed up. Run:

tar -c -L size -vMf /path/to/workingdir/file.tar *

size is the size of the media in KB, minus a few megs.

When it prompts you to change the media, rename file.tar to something meaningful and then touch file.tar. Continue until done.

Now, you can burn these tars to optical media as is, or you can do as I am doing and make ISO-9660 filesystems which you can readilly access.

First, begin extracting the archive. This is done with tar xvMf file.tar, where file.tar is the name of the first part of the archive. When it prompts for the next part, kill it and note the file or directory it was working on. Delete that file or directory.

Now run mkisofs against what you have so far, then burn it. Delete the extracted files and the iso file you just created.

Next, run tar -c --starting-file file -vMf file.tar, where file is the file or directory that was being extracted when you killed tar the last time, and file.tar is, again, the first part of the archive. When it prompts to switch volumes, rename file.tar to something else and rename the second part of the archive to file.tar. When you get to the end of that archive, repeat the above process.

There you have it. :)

Electro 09-06-2003 04:58 PM

200 gigabytes is a lot even for tape backup. DVDs can only store 4 gigabytes (to be safe). 200 divide by 4 is around 50 DVDs. You can use an online data storage. I use for some of my data although online data storage works best if you have a broadband connection. Its useless if you have 56 kbit modem. Using DVDs for backup you run a problem when reading them. Not many DVD readers can read DVD-R, DVD+R, DVD-RW, or DVD+RW. Also DVD drives are not very fast, you will be there for a few days backing up and restoring.

You can also use a hard drive since the prices are coming down. Maxtor 300 gigabyte 5400 RPM should be good enough. Buy a removable drive bay so you can make the backup process easier.

Tape drives or Hard drives are still better for your application.

RolledOat 09-06-2003 05:12 PM

What you stated seems like a good solution. About the only drawback is that you don't get any compression. If the end result is in tar.tgz, and Linux/Unix file manager can navigate through it. Unless the 200 gig is all binaries, etc, a fully compressed 200 gig tar would probably be ~120 Gig or so. Will your process work with while adding the .z file. That way, it will compress as it goes, you stop, move, extract, then retar with a new name with the .z option. You then just pop the tgz onto a dvd as a simple data DVD.


Electrode 09-06-2003 05:20 PM

Electro: I was using a 250 GB Maxtor HD in a USB 2.0 external housing for backups, but I decided that it would be more useful as part of my storage array due to my growing need for perminant storage. (I'm using almost 500 megs a day now)

Using DVDs will allow me to use that drive and all the other hard drives I was using to back other things up for "active" storage and allow me to add another 250 gigs of backup and archive space for around $50 whenever it is needed.

As for the speed issue, I used to use a USB 1.1 hard drive housing. ;)

Electrode 09-06-2003 05:24 PM

RolledOat: The data I am working with is almost 100% binary, much of it compressed. Therefore using the z or j flag in tar would do nothing but slow it down.

Electro 09-07-2003 02:28 AM

DVD-R disc doesn't last long. Before you buy the DVD-R, read the label on the DVDs to found out how long you should wait until replacing the DVD-R disc. I think gold version DVD-R last the longest but very costly.

I guess you can not wait for halographic storage to come to the public. It can store about one terabyte of storage of data in about a size of a sugar cube. I heard and read in the mid 1990s that they have a problem rewriting to the holgraphic storage. Soon it may come out.

Mega Man X 09-07-2003 02:54 AM

Unconnected but... does this also applies to CDr's? Because I've read that CDr can last as long as an ordinary CD, depending how you they were storage and protected. But it's still very controversial :).

About your problem, the only think I can think is using another hard-drive, internal or external for this task. Burning 50 DVD's is painful and some marks are quite expensive :). Hard drivers are cheaper now and always quite handy ;)

Electro 09-09-2003 04:08 PM

CD-Rs and CD-RWs don't last as long as ordinary CDs. Read the label. Each manufacture is different.

In the old days when we didn't have CD-R, ZIP, JAZ, we had to use floopies or expensive tape. Many people had stacks (+100) of floppies spending a whole day swapping and verifying disks. DVDs will take longer.

A bunch of hard drives will be better than DVDs. You just have to park the heads before shutting down or removing them. Megnatic material can last much longer than CDs.

There are other mediums to use that are better than DVDs.

All times are GMT -5. The time now is 11:46 AM.