Submitted by Creech on Fri, 11/14/2008 - 15:07.
I recently discovered the website Tips4Linux.com. If you are a Linux user, or are considering using Linux, it is worth bookmarking.
One of the recent tips is how to create an image of any directory, which can be used to help in backing up your files.
"If you want to make a quick backup of a certain directory, ready to be burned on a CD or DVD, you can use
mkisofs -V LABEL -r directory | gzip > cdrom.iso.gz"
In this case replace "LABEL" with whatever you want the CD label to be (what shows up when you insert the disk or mount the image). Also, replace "directory" with the location of the data you want to make the image from. So if you wanted to make an image of the /home/user/documents folder and give it the label "Documents," the command is
mkisofs -V Documents -r /home/user/documents | gzip > cdrom.iso.gz
This will create the gzipped file cdrom.iso.gz in the /home/user directory. Alternatively, you can create the .iso file without being gzipped by removing the section after the |, and adding "-o filename." So to make an image of the folder /home/user/stuff named image.iso with the label "Stuff," the command is
mkisofs -V Stuff -r -o image.iso /home/user/stuff
You can read more about this command here.
Recent comments
10 weeks 4 days ago
1 year 15 weeks ago
1 year 19 weeks ago
1 year 19 weeks ago
1 year 20 weeks ago
1 year 22 weeks ago
1 year 23 weeks ago