LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   Taking backup in dvd under linux (http://www.linuxquestions.org/questions/linux-general-1/taking-backup-in-dvd-under-linux-724310/)

peddip 05-07-2009 12:06 AM

Taking backup in dvd under linux
 
Hi,

I need to take backup of home directories in DVD under linux, Can any one let me know the process of doing it.

rylan76 05-07-2009 02:11 AM

Well, each day I make a backup of my mailboxes in KMail. I do this with a simple script - to get it onto DVD I simply write the resulting file with K3B to a DVD.

Here's the script:

Code:

tar cvf mail.tar .kde/share/config/kmailrc .kde/share/apps/kmail/*

bzip2 mail.tar

I run this with

Code:

rylan@development ~]$ . backup_mail.sh
I. e. dot backup_mail.sh

This results in a file called mail.tar.bz2 - this is then written to DVD.

peddip 05-07-2009 03:05 AM

Quote:

Originally Posted by rylan76 (Post 3532976)
Well, each day I make a backup of my mailboxes in KMail. I do this with a simple script - to get it onto DVD I simply write the resulting file with K3B to a DVD.

Here's the script:

Code:

tar cvf mail.tar .kde/share/config/kmailrc .kde/share/apps/kmail/*

bzip2 mail.tar

I run this with

Code:

rylan@development ~]$ . backup_mail.sh
I. e. dot backup_mail.sh

This results in a file called mail.tar.bz2 - this is then written to DVD.

Hi,

Thanks for your reply, But what are the commands to be used to take backup in DVD. Also how can i can find that i have DVD drive with RW option.?

rylan76 05-07-2009 03:40 AM

Huh?

Not sure what you mean, are you asking how to write a DVD?

Use K3B, or XCDroast. Most modern distros usually come with some form of DVD/CD authoring software already included.

peddip 05-07-2009 04:23 AM

Quote:

Originally Posted by rylan76 (Post 3533057)
Huh?

Not sure what you mean, are you asking how to write a DVD?

Use K3B, or XCDroast. Most modern distros usually come with some form of DVD/CD authoring software already included.

I'm asking about how to write dvd and how can i find that the drive i have is a writable drive.

My cdrecord -scanbus gave the below o/p and from this i think that my DVD drive is only readable but not writable. Please see the o/p below.


Cdrecord-Clone 2.01-dvd (--) Copyright (C) 1995-2004 Jörg Schilling
Note: This version is an unofficial (modified) version with DVD support
Note: and therefore may have bugs that are not present in the original.
Note: Please send bug reports or support requests to http://bugzilla.redhat.com/bugzilla
Note: The author of cdrecord should not be bothered with problems in this version.
scsidev: 'ATA'
devname: 'ATA'
scsibus: -2 target: -2 lun: -2
Linux sg driver version: 3.5.27
Using libscg version 'schily-0.8'.
cdrecord: Warning: using inofficial libscg transport code version (schily - Red Hat-scsi-linux-sg.c-1.83-RH '@(#)scsi-linux-sg.c 1.83 04/05/20 Copyright 1997 J. Schilling').
scsibus0:
0,0,0 0) 'HL-DT-ST' 'CDRW/DVD GCC4482' 'E108' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

monsm 05-07-2009 08:20 AM

I have been using this method too.

You should find all you need on this wiki page: http://en.gentoo-wiki.com/wiki/Backup_to_DVD

Mons
Edit: Just to clarify that a bit. growisofs mentioned in the wiki is just one of the dvd burning tools available, there are others available for use in scripts too.


All times are GMT -5. The time now is 07:38 AM.