LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-07-2004, 03:06 PM   #1
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Rep: Reputation: 45
cdrecord question


i know how to use cdrecord to burn an iso, but can i use it to backup specific files that are not ISO?

if i wanted to back up my /var/www/html dir and every subdirectory how would i go about doing that with cdrecord, or do i need to learn an other program for that?

thank you.
 
Old 04-07-2004, 03:11 PM   #2
fariz83
LQ Newbie
 
Registered: Mar 2004
Posts: 10

Rep: Reputation: 0
Hi:

I do not know if there is any other way than to create an iso file, you make that with mkisofs
in general I use
mkisofs -R -J -r -f -v -o backup.iso directory_to_backup

I hope this will work for you

Federico
 
Old 04-07-2004, 03:18 PM   #3
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Quote:
Hi:

I do not know if there is any other way than to create an iso file, you make that with mkisofs
in general I use
mkisofs -R -J -r -f -v -o backup.iso directory_to_backup

I hope this will work for you

Federico
ok so if i wanted to do that with my above dir i would do this:

mkisofs -R-J-r-f-v-o backup.iso /var/www/html/*

with or without spacing between the arugments and will the /* at the end get everything in the directory and subdirectories?

next question will be how do i extract that back to normal files once i burn it out to a cd? or will cdrecord extract the directory so i can just copy/paste it for use in restor if i need it, or for transfering to an other system when i start bring mirror sites online?

sorry for the bumb questions, but i really dont get the linux cli yet. learning slowing. to much M$ in my head. with EZcreator id just click and drag, hit burn and wait. all done.
 
Old 04-07-2004, 04:17 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally posted by Lleb_KCir
mkisofs -R-J-r-f-v-o backup.iso /var/www/html/*
Not quite, that would only backup the files actually
in html/*

You don't need -R if -r is specified, btw ...

Try
mkisofs -J -r -f -v -o backup.iso /var/www/html

If you want to burn directly:
Code:
mkisofs -J -r -f -v /var/www/html | cdrecord -v speed=<your max speed>  dev=<your device> -
Quote:
with or without spacing between the arugments and will the /* at the end get everything in the directory and subdirectories?
You do need the spaces :)

And there's no need for "extraction" of any kind,
you can copy the files as usual.


Cheers,
Tink
 
Old 04-07-2004, 05:21 PM   #5
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
great, so that does not really turn the files into the compress ISO format.

thank you so very much. wish i had known this the other day before my MDK10 system up and died on me. i could of saved my web page to CD and not have to rebuild it from scratch basicaly.

awsome awsome help. thank you both very much.
 
Old 04-08-2004, 04:31 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
No, compression would require the -z flag...


Cheers,
Tink
 
Old 04-11-2004, 02:31 AM   #7
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
Tinkster, thank you.

that worked like a dream. it was perfect. i now have my site 100% back to the way i want it before its next major rebuild from the ground up.

i can now safly go live this week to my URL after i get the DNS to swap over to my system.

i now have my excisting www on CD so if ihave any more problems i can be back up in a flash.

agian thanks to everyone for the help.
 
Old 04-13-2004, 03:02 PM   #8
Lleb_KCir
Senior Member
 
Registered: Nov 2003
Location: Orlando FL
Distribution: Debian
Posts: 1,765

Original Poster
Rep: Reputation: 45
is there a way to lable the CD while doing this backup?

instead of putting the CD in and it reading CD0012323, id rather it read something more logical like CDapache4-13-04 or something like that?

thanks.
 
  


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
Cdrecord - flag question satimis Linux - General 1 05-27-2005 03:49 AM
cdrecord Question dollaz Linux - Software 2 12-30-2004 03:44 PM
Cdrecord question satimis Linux - Software 6 10-22-2004 08:46 PM
A question about cdrecord Avatar Linux - Software 5 07-19-2004 09:59 AM
Question with CDRecord Gerardoj Linux - Software 3 10-30-2003 02:57 PM

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

All times are GMT -5. The time now is 01:09 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