DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 2nd February 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default Backup to DVD-RAM?

I recently came across a stack of dvd-ram disks I'd forgotten I had - they were used with a consumer DVD rewriter I no longer use. There's about a dozen disks, many in their original packaging, unused.

So, I was thinking of using them as backup media for my OpenBSD laptop. Up till now I've been using rsync, backing up to an external drive on the network. It works well enough, but is not ideal.

DVD-RAM disks use, from what I understand, packet writing, so the disks can be treated in a more conventional way.

I have a couple of questions:

1. Are dvd-ram disks a good medium for backup? Bearing in mind the total size of the data I wish to backup (i.e. the /home partition) is only about 5Gigs and is unlikely to rise much above two or three times that amount, at least for now.

2. Any recommendations of the best backup software to use? I'm only backing up the /home partition, so a fairly simple approach is probably best... Would dump/restore be a good choice?

Thanks for reading. Comments welcome.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'

Last edited by ip6ix; 2nd February 2018 at 01:04 AM. Reason: clarification
Reply With Quote
  #2   (View Single Post)  
Old 2nd February 2018
ibara ibara is offline
OpenBSD language porter
 
Join Date: Jan 2014
Posts: 783
Default

Quote:
Originally Posted by ip6ix View Post
1. Are dvd-ram disks a good medium for backup? Bearing in mind the total size of the data I wish to backup (i.e. the /home partition) is only about 5Gigs and is unlikely to rise much above two or three times that amount, at least for now.
Sure, if you can live with the 4.7 GB max capacity of the disks.

Quote:
Originally Posted by ip6ix View Post
2. Any recommendations of the best backup software to use? I'm only backing up the /home partition, so a fairly simple approach is probably best... Would dump/restore be a good choice?
What are you trying to back up? Just some files? dump(8) is pretty good then. Or you could go real basic and do something like:
Code:
$ cd
$ cd ..
$ doas tar -cz -f ip6ix-`date +%Y%m%d` ip6ix/
Which would simply make a tarball of your $HOME (assuming your username is ip6ix). And then you can drop the tarball onto your DVD-RAM.
Reply With Quote
  #3   (View Single Post)  
Old 2nd February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Should you want to manage multi-disc volumes, you may find sysutils/shunt helpful. From the package description:
Quote:
The shunt utilities: shunt, exactly, and flyisofs, were originally
written for burning multi-set CDROM backups using mkiosfs and cdrecord.

The key utility -- shunt -- manages recursive access to piped I/O, so that
programs may be re-run without causing a pipe to close.
Reply With Quote
  #4   (View Single Post)  
Old 2nd February 2018
shep shep is offline
Real Name: Scott
Arp Constable
 
Join Date: May 2008
Location: Dry and Dusty
Posts: 1,503
Default

I also use the tar command but add the compression flag for gzip. Given that your /home directory is about 5GB, compression might be enough to get it all on one DVD.

My data fell in to two categories, ripped mp3's and other. My "other" data is frequently updated and includes emails You can feed the tar command a list of files/folders and be selective about what you back up. I have not ripped mp3 in several years.

As far as the durability of DVD disks, I read somewhere, that standard disks could be relied on for about 10 years. I believe that there are some newer DVD touting more durable data storage but not sure sure that the improved durability is anything more than hype.

Last edited by shep; 2nd February 2018 at 03:53 PM.
Reply With Quote
  #5   (View Single Post)  
Old 3rd February 2018
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 628
Default

Quote:
Originally Posted by shep View Post
I also use the tar command but add the compression flag for gzip. Given that your /home directory is about 5GB, compression might be enough to get it all on one DVD.
Compression can be dangerous. In some compression formats corruption of one byte can lead to unability of decompression of whole archive. Probably some modification to decompression algorithms would allow to recover at least some data, but they are not currently able to do that. I can confirm that on xz archives.
You can counter that using tools like "par2cmdline", but they add redundancy making files larger. Some file formats are compressable to pretty good degree for example text files. For text files compression and later adding redundancy can make resulting archive smaller overall.

Quote:
Originally Posted by shep View Post
As far as the durability of DVD disks, I read somewhere, that standard disks could be relied on for about 10 years. I believe that there are some newer DVD touting more durable data storage but not sure sure that the improved durability is anything more than hype.
I don't think that there are large investments in DVD storage nowadays. I wouldn't count on today discs and DVD recorders being more reliable that its 10 years old counterparts.
If you have DVD recorder in your non-budget desktop's system unit from 2008 I would prefer that recorder than today recorders.

Record DVD at medium speed for improved durability. There were tests that showed low speed and maximum speed recording are making more writing errors than medium speed recording.
__________________
Signature: Furthermore, I consider that systemd must be destroyed.
Based on Latin oratorical phrase

Last edited by e1-531g; 3rd February 2018 at 09:30 AM.
Reply With Quote
  #6   (View Single Post)  
Old 4th February 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

Many thanks to everyone who responded.

Shunt looks quite interesting, I'll take a look at that more closely later, thanks jggimi.

Since the size of the backup is relatively small (and consists mainly of text), the compression ratio is good. With compression this will easily fit on one disk. I might add par2 verification using par2cmdline also, this seems like a good idea for important data (though I tend to make more than one backup at a time, so may be overkill).

I wanted to create a UDF filesystem on the dvd-ram disk, as this would be a very convenient way of accessing the dvd for backup purposes, but it seems this is not (yet?) available in OpenBSD. I can mount an already formatted udf volume using mount_udf(8), but it's read-only.
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
  #7   (View Single Post)  
Old 4th February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Quote:
Originally Posted by ip6ix View Post
...but it seems this is not (yet?) available in OpenBSD. I can mount an already formatted udf volume using mount_udf(8), but it's read-only.
See sysutils/udfclient.
Reply With Quote
  #8   (View Single Post)  
Old 4th February 2018
ip6ix's Avatar
ip6ix ip6ix is offline
Fdisk Soldier
 
Join Date: Sep 2017
Posts: 66
Default

Quote:
Originally Posted by jggimi View Post
See sysutils/udfclient.
Perfect. Thanks jggimi
__________________
dc -e '[q]sa[ln0=aln256%Pln256/snlbx]sb12247225403800449909543746snlbxq'
Reply With Quote
Reply

Tags
backup, dvd-ram

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to backup OpenBSD? daemonfowl OpenBSD General 6 20th February 2012 10:26 AM
Safe Backup Scott7 OpenBSD General 3 20th January 2011 02:01 PM
Live backup mrthomas FreeBSD General 4 21st December 2009 11:30 PM
backup freeBSD 7.0 using Backup Exec ccc FreeBSD General 2 25th April 2009 09:23 PM
Backup strategies Oko General software and network 4 2nd February 2009 01:32 AM


All times are GMT. The time now is 04:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick