Link to home
Create AccountLog in
Avatar of clicker666
clicker666

asked on

Backup data (documents, images) to Blu-Ray in Ubuntu

I've created an Ubuntu server for all my storage needs.  I'm backing up VMs from ESX to it, and Windows backups as well.  I need to archive documents such as quotes, pictures, spreadsheets, etc. to removable media for retrieval years later.  As such, hard drives won't cut it.  I'm making a complete copy of all the data on a weekly basis to blu-ray and moving it offsite.  Is there a command to copy all the files and folders to a blu-ray disk in Ubuntu?
Avatar of R_Edwards
R_Edwards
Flag of United States of America image

Avatar of clicker666
clicker666

ASKER

Did you actually come up with a series of commands that worked? That page gave me some ideas, but no means to actually make one.  The UDF part at the beginning threw me.
ASKER CERTIFIED SOLUTION
Avatar of R_Edwards
R_Edwards
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Here's the final commands:

truncate --size=25GB /media/array/files.udf
mkudffs /media/array/files.udf
mkdir /mnt/bluray
mount -o loop -rw /media/array/files.udf /mnt/bluray
mv /media/array/backups /mnt/bluray
umount /mnt/bluray
growisofs -speed=1 -Z /dev/dvd=/media/array/files.udf

Open in new window


So it appears to work and starts burning, then at 7.3% done....

 1828126720/25000000000 ( 7.3%) @0.3x, remaining 102:27 RBU 100.0% UBU  37.5%
 1832714240/25000000000 ( 7.3%) @0.3x, remaining 103:01 RBU 100.0% UBU  20.8%
 1836744704/25000000000 ( 7.3%) @0.3x, remaining 103:24 RBU 100.0% UBU   4.2%
:-[ WRITE@LBA=db0a0h failed with SK=3h/WRITE ERROR]: Input/output error
:-( write failed: Input/output error
/dev/dvd: flushing cache
/dev/dvd: closing track
/dev/dvd: closing session
:-[ CLOSE SESSION failed with SK=5h/INVALID FIELD IN CDB]: Input/output error
/dev/dvd: reloading tray

Open in new window


So I'm awarding points for the correct answer.  Now I just have to get it to successfully burn.  Failing that I'm back to the drawing board.  Windows 2008 Server seems to have functional NFS, but of course, my old SRCS16 RAID isn't supported.  Windows 2003 Server supports my RAID, but has buggy NFS that stops working all the time.
How much data are you talking about?  what was the total size of the UDF?  were you able to read the disk afterwards?
Found out the disk wasn't inserted.  I don't know how it got to 7% without a disk in it.
Thanks for the patience and going into detail!
buffer.. and no worries if it worked out for you I am glad to help, if it didn't le mt know and I will research further.

-=Richard
One small issue - Even though it seems that I'm only using 20 GB of the 25 GB capacity, I'm running into block size limitations.

root@diskserv:~# growisofs -speed=1 -Z /dev/dvd=/media/array/files.udf
Executing 'builtin_dd if=/media/array/files.udf of=/dev/dvd obs=32k seek=0'
:-( /dev/dvd: 12088320 blocks are free, 12207031 to be written!

Open in new window


I'm figuring that reducing the block size might take care of this, but unsure.
i believe it should as well