LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2019, 08:00 PM   #1
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Rep: Reputation: Disabled
Question Split Tar archive over Blu-Ray


Hi friends,

I have several TBs of photos that are copied to multiple hard drives for redundancy. I want to make a Blu-Ray archive of them as well.

My photos are arranged chronologically by year. I’m considering making a Tar archive of a year (ex: 2018/ is 225GB) and then using the split command to cut it up into ~25GB sized chunks to burn to Blu-Ray for cold storage. My only hesitation is that if one of the discs goes bad, I would lose the entire year of photos potentially as there would be no parity in this approach.

I welcome all suggestions on a better way to do this. Manually adding up folder sizes to burn isn’t too appealing. Thanks for your time!
 
Old 11-11-2019, 08:48 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Instead of split use multi volume option. Each volume is accessible as if it was a single archive so losing one disk does not affect the others.

https://www.gnu.org/software/tar/man...-Archives.html
 
1 members found this post helpful.
Old 11-11-2019, 09:48 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
When I want to look at my shots, I don't want to be faffing around. I backup uncompressed. Disk is cheap - make 3 separate (external) copies, it's still cheap. If you have problems use ddrescue to merge them back to a valid state.
If you insist on tar, have a look at using lz compression, and lziprecover to reconstruct using ddrescue in case of media failure. I looked at this but I have a hard time reconciling tar usage in this day and age, so I ultimately skipped testing it.

Others will have maybe better suggestions.
 
Old 11-12-2019, 09:28 AM   #4
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,474

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
If you go down the path of using Blu Ray be aware that any disks of this type are subject to "rot" where the dye layers degrade over time. Be prepared to have to restore re-backup your data to new media every couple of years.
 
Old 11-12-2019, 12:31 PM   #5
PECONET009
Member
 
Registered: Sep 2006
Location: Finland.
Distribution: kali linux.
Posts: 156

Rep: Reputation: 21
You seem to be in a similar predicament as me.

Quote:
Originally Posted by ArchiveMyData View Post
Hi friends,

I have several TBs of photos that are copied to multiple hard drives for redundancy. I want to make a Blu-Ray archive of them as well.

My photos are arranged chronologically by year. I’m considering making a Tar archive of a year (ex: 2018/ is 225GB) and then using the split command to cut it up into ~25GB sized chunks to burn to Blu-Ray for cold storage. My only hesitation is that if one of the discs goes bad, I would lose the entire year of photos potentially as there would be no parity in this approach.

I welcome all suggestions on a better way to do this. Manually adding up folder sizes to burn isn’t too appealing. Thanks for your time!
You seem to be in a similar predicament as me, but, I will build a small server to stash all my photo's and music and have them in a RAID system and to have them backed up in the cloud, you know just in case.
 
Old 11-13-2019, 10:26 AM   #6
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
This was helpful. I tried a test run of it. I broke them up into 8GB volume sizes.
tar -ML 8388608 -cvf DancePhotos1.tar DancePhotos/

The resulting tar files didn't respect my folder chronology (jumbled the files from multiple sub-folders into each tar piece). And it resulted in tar:
Unexpected EOF in archive tar:
Error is not recoverable: exiting now
when trying to view the tar file contents (tar -tf DancePhotos1.tar)

I'm not sure what's up with this result.

Quote:
Originally Posted by michaelk View Post
Instead of split use multi volume option. Each volume is accessible as if it was a single archive so losing one disk does not affect the others.

https://www.gnu.org/software/tar/man...-Archives.html
 
Old 11-13-2019, 10:29 AM   #7
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
I did the small server as well. After my primary and second backup, I have an Ubuntu server box with a zfs z1 zpool for my photos and other files as my 2nd redundancy source (third copy). I have another 8TB hdd with everything on it in a fire safe (4th source). I'd really like the Blu-Ray for one extra layer of safety.

Quote:
Originally Posted by PECONET009 View Post
You seem to be in a similar predicament as me, but, I will build a small server to stash all my photo's and music and have them in a RAID system and to have them backed up in the cloud, you know just in case.
 
Old 11-13-2019, 10:41 AM   #8
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes it is a real concern. I have seen mixed reports on life expectancy of optical media. Anecdotally, I have CDs and DVDs that I have personally burned that are 15+ years old and they still work. There just on a shelf (not ideally stored by any means). For my purposes, the Blu-Ray burn will be my 5th form of redundancy/archive that I won't plan on accessing unless I need to.

Quote:
Originally Posted by TenTenths View Post
If you go down the path of using Blu Ray be aware that any disks of this type are subject to "rot" where the dye layers degrade over time. Be prepared to have to restore re-backup your data to new media every couple of years.
 
Old 11-13-2019, 10:45 AM   #9
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
I'm trying to make Tar work for me in making Blu-Ray disc sized archives of my files rather than manually adding up how much I can burn to BR disc. It's my 5th source of redundancy that I won't be accessing unless a catastrophic failure occurs. So far, it's not working for me. lol.

Quote:
Originally Posted by syg00 View Post
When I want to look at my shots, I don't want to be faffing around. I backup uncompressed. Disk is cheap - make 3 separate (external) copies, it's still cheap. If you have problems use ddrescue to merge them back to a valid state.
If you insist on tar, have a look at using lz compression, and lziprecover to reconstruct using ddrescue in case of media failure. I looked at this but I have a hard time reconciling tar usage in this day and age, so I ultimately skipped testing it.

Others will have maybe better suggestions.
 
Old 11-13-2019, 10:59 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,691

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
The following thread might help. If you do not have use a script when you press return tar continues to write to the same file. Basically tar should archive the files in order basically as the output from the ls -l command.

https://www.linuxquestions.org/quest...on-4175492196/
 
1 members found this post helpful.
Old 11-13-2019, 11:07 AM   #11
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Yes I used the n option to manually rename the next tar archive. So I do end up with three separate volumes as expected. But for some reason they are random and not like the output from ls -l as I would expect. Another forum post mentioned using the --multi-volume option while viewing the contents as well. Going to try that.

Quote:
Originally Posted by michaelk View Post
The following thread might help. If you do not have use a script when you press return tar continues to write to the same file. Basically tar should archive the files in order basically as the output from the ls -l command.

https://www.linuxquestions.org/quest...on-4175492196/
 
Old 11-13-2019, 03:48 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by ArchiveMyData View Post
I'm trying to make Tar work for me in making Blu-Ray disc sized archives of my files rather than manually adding up how much I can burn to BR disc. It's my 5th source of redundancy that I won't be accessing unless a catastrophic failure occurs. So far, it's not working for me. lol.
Fair enough.
Be aware of technology creep in addition to the bit-rot mentioned above. If such an event occurs a few years down the track, will you be able to find a compatable drive (and drivers) ?. Blueray seems to be one of those "bigger is always better" ideas that never went anywhere.

I do recall using mondo to do as you want to create isos for burning onto CD back in the day. Was my system backup, and I didn't care what order the files were so long as I had backup. Way slow, but good for its time and purpose. Hopefully you can get tar to behave as you want.
 
1 members found this post helpful.
Old 11-13-2019, 03:54 PM   #13
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
I was never excited about Blu-Ray actually. Streaming media killed it as a platform I think. For data archival purposes, I think it's the best/most viable option currently. Aside from redundant hard drives and perhaps cloud services, there isn't a better cold-storage option. Tar is still not behaving as I would like. I get the same results on an Arch distro that I do on Debian 10.

Quote:
Originally Posted by syg00 View Post
Fair enough.
Be aware of technology creep in addition to the bit-rot mentioned above. If such an event occurs a few years down the track, will you be able to find a compatable drive (and drivers) ?. Blueray seems to be one of those "bigger is always better" ideas that never went anywhere.

I do recall using mondo to do as you want to create isos for burning onto CD back in the day. Was my system backup, and I didn't care what order the files were so long as I had backup. Way slow, but good for its time and purpose. Hopefully you can get tar to behave as you want.
 
Old 11-13-2019, 05:37 PM   #14
ArchiveMyData
LQ Newbie
 
Registered: Nov 2019
Posts: 8

Original Poster
Rep: Reputation: Disabled
Just as an update for anyone else reading this in the future, I was able to use tar to make a multivolume archive. Reconstituting the individual archives back into one whole archive does work. To view the contents of a multi-volume tar archive, you have to use the -M option (tar -Mtf YourTarArchive1.tar). The same result was published here..

The interesting phenomenon is that tar does not add the files to the archive like the results from ls -l would give (ex: chronologically or alphabetical file name). The files & directories per multi-volume "tar slice" are randomly assigned which still baffles me (my best guess is that it picks the files that will add up to the specified archive size?) I ran tar -Mtf DancePhotos1.tar > contents.txt and you can see exactly what files are contained in each slice.

This is not an ideal solution for backing up to Blu-Ray because if you lose one of the slices due to disc rot/failure/whatever, you may not be able to reconstitute the multi-volume archive as some individual files do span the archive slices. (Ex: half of file A is in DancePhotos1.tar and the other half is in DancePhotos2.tar). The slices aren't really their own self standing individual archive as I had hoped. Back to the drawing board!

Thanks everyone!
 
Old 11-13-2019, 05:46 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Shouldn't matter - see my suggestion above; use lz and keep multiple copies. When I did CDs I did two copies and kept the original disk image. If the latter ever failed (did once) I could recover the data.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to split a large archive*file into multiple small files using Split command in Linux LXer Syndicated Linux News 0 11-07-2016 05:20 PM
Is there a blu ray burner working under Linux ? Linux.tar.gz Linux - Hardware 4 01-15-2010 04:47 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
LXer: ISO images dumped from PS3 Blu-ray discs via Linux LXer Syndicated Linux News 0 11-28-2006 01:03 PM
LXer: Sony puts up Blu-ray player BDP-S1 for pre-order LXer Syndicated Linux News 0 04-22-2006 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration