Answers to: does "dump" command knows DVD device ?http://linuxexchange.org/questions/1402/does-dump-command-knows-dvd-device<p>Hi there</p> <p>I want to backup my filesystems from an "Oracle Enterprise Linux" servr on a DVD. Does "dump" command knows DVD device ?</p> <p>Thanks Fery</p>enTue, 02 Nov 2010 18:08:24 -0400Answer by Der Beraterhttp://linuxexchange.org/questions/1402/does-dump-command-knows-dvd-device/1413<p>Dump was designed to write to tape -style devices - it writes a stream of bytes. DVDs, as random-access devices, require a filesystem to be used. Therefore, the best approach I can come up with is to dump the filesystem to a file on another filesystem, and then create an ISO image from that, which is then burned to DVD with cdrecord, Gnomebaker, or other burner. This approach does require yyou to have copious disc space handy, however. An example set of commands follows to back up the hypothetical filesystem /dev/hda3: (you should be root for all of them):</p> <p>mkdir /scratch/dumpstore dump 0f /scratch/dumpstore/daily_dump /dev/hda3 mkisofs -o /scratch/dump.iso /scratch/dumpstore cdrecord -sao -eject dev=2,0,0 /scratch/dump.iso</p> <p>Note that you need to know the device to ue for the burner: use cdrecord --scanbus to find this out. Now, if you want to avoid using all the scratch space, it appears that both mkisofs and cdrecord can be used in a pipeline - try the following:</p> <p>dump 0f - | mkisofs --stream-media-size 714000 -o - | cdrecord -pad dev=2,0,0 -</p> <pre><code>Be prepared to make a few coasters. </code></pre>Der BeraterTue, 02 Nov 2010 18:08:24 -0400http://linuxexchange.org/questions/1402/does-dump-command-knows-dvd-device/1413Answer by Hans Poppehttp://linuxexchange.org/questions/1402/does-dump-command-knows-dvd-device/1404<p>No. DUMP by itself does not know this. Dump is an old program, but it still works. However you need to pipe utput from dump ti mkisofs (to make a file that the DVD can understand). From there you can store the dump-file on hard disk to be burned ti DVD later or you could (but probably should not) pipe the output from mkisofs directly to cdburn (or another burning program that you can call from the commandline). Maybe you should think about making a .tar.bz2 file insted of dump? Say you want to backup your home dir, you could give: tar -cvfj /etc/backup.tar.gz /home/username Burn this to a DVD later.</p>Hans PoppeTue, 02 Nov 2010 09:30:19 -0400http://linuxexchange.org/questions/1402/does-dump-command-knows-dvd-device/1404