September 2014
M T W T F S S
« Mar    
1234567
891011121314
15161718192021
22232425262728
2930  
150

Refs

Categories

Archives

profile for slm on Stack Exchange, a network of free, community-driven Q&A sites

[one-liner]: How to Backup a Movie DVD via the Command Line on Fedora 14 & CentOS 5

Background

Have you ever wanted to make a backup copy of a DVD via the command line? I don’t really care about the politics/legal issues around this simple task, I have 3 kids and don’t really feel like purchasing multiple copies of the same discs. So here’s a quick and dirty way to accomplish the task.

Solution

Once you get your head around the various elements, it’s actually very easy to do this. There are basically 3 steps to duplicating a DVD.

  • make a copy of the DVD file system to local hard drive
  • convert local hard drive copy to an ISO file (.iso)
  • burn the ISO file to a DVD

Here’s the commands that accomplish the above steps:

1
2
3
4
5
6
7
8
9
% cd /dir/where/you/save/the/dvd
 
# insert DVD to be copied
% dvdbackup -M
% genisoimage -dvd-video -udf -o movie.iso /dir/where/you/save/the/dvd
% eject /dev/dvd
 
# now insert a blank DVD
% growisofs -Z /dev/dvd=movie.iso

To make things even simpler you can skip the ISO creation step and burn the local hard drive copy directly:

1
2
3
4
5
6
7
8
% cd /dir/where/you/save/the/dvd
 
# insert DVD to be copied
% dvdbackup -M
% eject /dev/dvd
 
# now insert a blank DVD
% growisofs -dvd-video -udf /dir/where/you/save/the/dvd

Just for reference purposes, here’s an example of the transcript when burning the DVD (output from the growisofs command):

1
2
3
4
5
6
7
8
9
10
11
12
13
14
% growisofs -dvd-video -Z /dev/dvd -udf MFTP_100ACREWOODHA_US/ 
 
Executing 'mkisofs -dvd-video -udf MFTP_100ACREWOODHA_US/ |
builtin_dd of=/dev/dvd obs=32k seek=0'
I: -input-charset not specified, using utf-8 (detected in locale
settings)
  0.17% done, estimate finish Sat Oct 29 21:46:22 2011
  /dev/dvd: splitting layers at 1458832 blocks
  /dev/dvd: "Current Write Speed" is 4.1x1352KBps.
    0.34% done, estimate finish Sat Oct 29 23:04:07 2011
    0.51% done, estimate finish Sat Oct 29 22:47:56 2011
    ...
    ...
    ...

References

links
local copies

NOTE: For further details regarding my one-liner blog posts, check out my one-liner style guide primer.

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>