To aid in the backup of data, NEC generally provides a CD/DVD writer with each control system. This section will cover the basic usage of some scripts to create and write standardized backups of AccelNET releated data. If you would like to use the CD/DVD writer for other purposes, using a graphical application such as xcdroast[1] or K3b[2] is recommended. The scripts provided are wrappers to the following command line tools: mkisofs, cdrecord, growisofs.
CDs and DVDs are normally written using what is refered to as an image. An image can be in many different formats depending on the methods used to create it. The most universal of these images is called an ISO and conforms to the ISO9660 specifications.
The typical usage for CD/DVD images is to backup the AccelNET directory tree. The files contained in the AccelNET tree are owned by several different users and groups. Because of this, the root user must be used to create the backup image. The following is a set of procedures to produce what is called an AccelNET snapshot.
Login as or su - to the root user.
csadmin$
su -
Password:
<type root's password and press Enter>
root#
Change to the /cdrecord directory.
root#
cd /cdrecord
Use buildit to create the image.
root#
./buildit snapshot
The file /cd.accelnet will be created that can be burned to CD or DVD.
The buildit command may also be used to create custom CD/DVD images. For usage information, run buildit without any arguments.
Once an image has been created, either using the buildit or on your own, it needs to be written to a CD or DVD. To accomplish this, the recordit is used. The following is a set of procedures to write the snapshot image to a cd.
Insert a blank CD into the CD/DVD writer.
Change to the /cdrecord directory.
csadmin$
cd /cdrecord
Use recordit to write the image.
csadmin$
./recordit cd snapshot
The recordit command may also be used to write custom CD/DVD images. For usage information, run recordit without any arguments.