This shows you the differences between two versions of the page.
backuptodvd [2012/01/14 05:14] mschiff removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Tape-Like Backup ====== | ||
- | tar cvf - -C /files/to/backup | growisofs -Z /dev/dvd=/proc/self/fd/0 | ||
- | Restore: | ||
- | tar xvf /dev/dvd | ||
- | |||
- | ====== Backup with UDF-Filesystem on DVD ====== | ||
- | As packetwriting is not very good today under Linux, we can do it this way: | ||
- | |||
- | Create image file: | ||
- | <code> | ||
- | # dd if=/dev/zero of=./dvd_backup.img bs=32768 count=143444</code> | ||
- | Create UDF filesystem inside the image: | ||
- | <code> | ||
- | # mkudffs --media-type=dvd dvd_backup.img</code> | ||
- | Create mountpoint and mount the image: | ||
- | <code> | ||
- | # mkdir mnt | ||
- | # mount dvd_backup.img mnt -o loop</code> | ||
- | Copy files to the image and unmount it: | ||
- | <code> | ||
- | # cp -a /files/to/backup mnt | ||
- | # umount mnt</code> | ||
- | Burn the image to DVD: | ||
- | <code> | ||
- | # growisofs -dvd-compat -Z /dev/dvd=dvd_backup.img</code> | ||