no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | help:sysnews:isohome [2009/10/14 13:24] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | ====== Backup to CD/DVD ====== | ||
+ | |||
+ | ---- | ||
+ | |||
+ | * [[# | ||
+ | * [[# | ||
+ | * [[# | ||
+ | * [[# | ||
+ | * [[# | ||
+ | * [[# | ||
+ | |||
+ | ---- | ||
+ | |||
+ | < | ||
+ | |||
+ | ===== The really short version of the instructions ===== | ||
+ | |||
+ | |||
+ | |||
+ | ==== If you just want to do this without delay and can get to the CS lab... ==== | ||
+ | |||
+ | * Bring a blank CD or DVD to the lab | ||
+ | * Log into your account, bring up a terminal and type " | ||
+ | * Follow all the instructions it gives you | ||
+ | |||
+ | **You' | ||
+ | |||
+ | ==== If you prefer more detail about the process, read on... ==== | ||
+ | |||
+ | ===== Overview ===== | ||
+ | |||
+ | While I make regular backups of the home directories on the Computer Science unix machines there are times when you want to have your own copy of your account. There are several relatively painless ways to accomplish this task. On this page I describe creating a CD or DVD image. If you need my help, [[mailto: | ||
+ | |||
+ | The processes consists of making a cd image of your home directory and then either burning that image onto a CD or DVD in the lab or moving that file off our system to some other place where you can burn that image onto a CD or DVD. | ||
+ | |||
+ | The image we will create will be in iso9660 format with Joliet directory records in addition to iso9660 file names. This type of image can then be burned onto a CD or DVD or even mounted directly on a wide varity of operating systems including but not limited to MacOSX, Solaris, Linux, Win2k and WinXP. | ||
+ | |||
+ | For the remainder of this document I will be referring to the image file we are going to create as an //iso image//. | ||
+ | |||
+ | What commands you will use: | ||
+ | |||
+ | * our in-house [[isohome.script]] command script | ||
+ | * the [[http:// | ||
+ | * if you are not burning your disk in the lab you will use [[http:// | ||
+ | * finally clean up with the [[http:// | ||
+ | |||
+ | |||
+ | ===== Creating an iso image of your entire directory with isohome ===== | ||
+ | |||
+ | Mkisofs (make iso file system) is a great command. It creates iso9660 images. However, it takes lots of options so I have simplified the process and written a wrapper for it. (Lucky you!) It is called [[isohome.script]]. | ||
+ | |||
+ | [[isohome.script]] expects to be run on the machine where your home directory actually resides as this saves mkisofs having to send your entire directory back and forth over the network. Log onto your CS account and issue the command [[isohome.script]]. If you are not on the true home of your files you will be told which machine to log on to and given the command you need by [[isohome.script]]. | ||
+ | |||
+ | Once you have ssh'ed to the correct machine enter the comand [[isohome.script]] at a command prompt: | ||
+ | |||
+ | isohome | ||
+ | |||
+ | The script will take it from there occasionally asking for confirmation to continue. | ||
+ | |||
+ | [[isohome.script]] makes a number of choices for you. For example it skips any file that it thinks is a backup file as indicated by ending in a tilde or a number sign, it also skips any file ending in ' | ||
+ | |||
+ | ===== Burning the image to a CD or DVD in the Advanced Lab ===== | ||
+ | |||
+ | If you are on campus the easiest way to make the image into a CD or DVD is to burn it in the Advanced Lab. This is because the file is already in your account so it does not have to be moved, you only have to put in blank media and issue the command to burn the image to that media. | ||
+ | |||
+ | * Come to the lab and log in to your account. | ||
+ | * Press the button on the CD/DVD tray to open it (the real button on the actual tray). | ||
+ | * Put in your blank media. (You remembered to bring some didn't you?) | ||
+ | * Open a terminal. | ||
+ | * Find the name of your backup file. It will be in your home directory named YOUR_ACCOUNT_NAME-home-YEAR-MONTH-DAY.iso as in " | ||
+ | * Issue the command " | ||
+ | * The image of you files will be burned onto the media. If it is not, please email me and include any output from wodim. | ||
+ | * Continue with [[#Final step - Cleanup|cleanup]] bellow, please don't forget this step. | ||
+ | |||
+ | ===== Copying the file to another location ===== | ||
+ | |||
+ | If you can't get to the Advanced Lab you need to copy the iso image of your account to a system with a CD or DVD burner you can use. To do this you will be using [[http:// | ||
+ | |||
+ | From there burn a CD/DVD following the instructions for doing so on that system (beyond the scope of this Document). | ||
+ | |||
+ | ===== Final step - Cleanup ===== | ||
+ | |||
+ | Once you have burned it in the lab or copied the iso to another location, please remove the file from the CS machines. We do not have space to to keep an image of each persons account on disk, that's why I do backups to tape! To remove the file, use the [[http:// | ||
+ | |||
+ | rm / | ||
+ | |||
+ | You can now sleep easier knowing that you have your own copy of all your files. Should the need arise, you can restore any or all of them on our or another system. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Mkisofs Documentation ===== | ||
+ | |||
+ | More information on mkisofs and it's replacement genisoimage is available in from the man page: | ||
+ | |||
+ | [[http:// | ||
+ | ---- | ||
+ | |||
+ | This page was written using emacs and psgml mode with an HTML 2 DTD, then in 2008 it was converted with html2wiki into dokuwiki format and touched up in the dokuwiki editor. | ||
+ | --- // | ||
+ | |||
+ | |||