Topic:
How to backup an IESX project
Description:
Solution:
To make a full project backup, all files associated with the project need to be backed up. When backing up a project which is sharing data (either as an incoming or an outgoing reference) it is advisable although not essential to remove the share references by unsharing the data. The backup can be run manually from the project level or by using the script created in Project > Backup. If the files are backed up from the project level they can be restored more easily to any file system. 1.) Obtain a list of all DSL's associated with the project by either creating a backup script from Project > Backup or by checking the list of 'Target DSL's in Data Manager > Move files. 2.) Change directory to the home DSL of the project. eg. cd /home/disk/iesxroot/projectname 3.) Use the 'tar' command to write all files to tape. eg. tar cvf /dev/rmt/0bn * 4.) Change directory to the next DSL and repeat the 'tar' command. 5.) Repeat until all directories have been backed up. The Backup script created by Project > Backup will need to be edited before use. Also be aware that the backup script created by Project > Backup uses the full path name. When restoring data backed up in this way, this full path name will need to exist or links will have to be created to allow data to be restored. See 'How to restore an IESX project' Also note that the number to the left of the path name indicates free space on the disk - not the amount of space being used by this project. When using the script to run the backup make sure that all directories selected for backup will fit on the tape. 1.) Project > Backup > OK A default script file, projectname.bak, will be created in the user's unix home directory, which will contain a list of all DSL's associated with the project, not just those containing data. Example : #!/bin/csh -f echo Backing up project projectname # # 2147483647 /home/disk1/iesxroot/projectname/ # 14748647 /home/disk2/iesxroot/projectname/ # 2183647 /home/disk3/iesxroot/projectname/ # mt rewind tar -cvf /dev/rst0 \ /home/disk1/iesxroot/projectname /home/disk2/iesxroot/projectname /home/disk3/iesxroot/projectname # # echo End of backup 2.) Edit this file to include only the DSL's that you want to backup to this tape. 3.) Edit the default tape device name (currently /dev/rst0) and 'mt rewind' to match tape device being used eg. mt -f /dev/rst0 rewind 4.) At the prompt, in the users unix home directory, run the scrpit by typing : source projectname.bak The script can be further edited to backup the files from the project level. eg. #!/bin/csh -f echo Backing up project projectname # # 2147483647 /home/disk1/iesxroot/projectname/ # 14748647 /home/disk2/iesxroot/projectname/ # 2183647 /home/disk3/iesxroot/projectname/ # mt -f /dev/nrst0 rewind cd /home/disk1/iesxroot/projectname tar -cvf /dev/nrst0 * cd /home/disk2/iesxroot/projectname tar -cvf /dev/nrst0 * /home/disk3/iesxroot/projectname tar -cvf /dev/nrst0 * mt -f /dev/nrst0 rewind # # echo End of backup
Last Modified on: 25-MAR-99