Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello all. I want to backup my /var partition on to a cd. I think what I have to do is create an iso of my /var partition first and then burn it to cd. So would it be like this:
ummm...is this right? In the man pages for mkisofs it says something about Rock Ridge Extensions. Do I need those? This won't remove anything from the /var partition will it?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
those are just the options my burning program puts
together when i set it to burn /var and /etc.
a bunch of mkisofs options, including joliet and
rockridge. I figured you would see how to add dirctories
to the iso image, here being created on the fly and written
to - (standard in), and cdrecord taking that data and
writing it to a multi-session cdrom, as the first session,
without an intermediate iso image. the - at the end tells
cdrecord to read from standard in instead of from a file.
See I tried that before but it didn't work. It wrote to the cd but the cd would not mount when I was done. I guess thats why I have to zip on the fly right. So do if I tarred some files, gzipped them, and then wrote the .tar.gz file to cd that would not work your saying. You must do it on the fly. Okay so would doing it on the fly look like this:
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
you've got to use the mkisofs to create the iso filesystem
for the cdrom.
you could
mkdir /backups
tar clfvz - /var > /backups/var.tgz
tar clfvz - /etc > /backups/etc.tgz
You seem to be getting confused from all the options specified. You don't need the PublisherID or any of the ID's those are just to help you organize your backups easier. If you don't think you'll use them, leave them out of the equation:
mkisofs -L -l -J -R /backups/=/backups/ | cdrecord <options> -
Whansard:
I tried to mkisofs with the /backups/=/backups/ option, but I get errors. This is the only part of it I don't understand, so could you elaborate, or link to where you got that option from? Maybe my version of mkisofs is too old to handle that option? Or maybe it's been removed on my newer version if yours is older?
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
yeah, thats for an old mkisofs. i forgot, i have both a new
and an old.
take out the /backups/=/backups/ and replace with
/backups/
i guess they changed the way they specify a changed
directory name with mkisofs. my old kisocd program
doesn't work with the newer mkisofs because of that.
i completely forgot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.