First, the basic steps:
1. Use the MKISOFS command to build the data you want to back up into a mirrored file.
2. Use the Cdrecord command to burn the image file to a disc or DVD.
Second, mkisofs: New Image file
Mkisofs [-0 image file] [-RV] [-m file] files to be backed up ... [-V vol] Graft-point isodir=systemdir ...
Parameter description:
-O: Specify the image file later
-r: More information can be recorded by Rockridge generating file data that supports Unix/linux.
-V: Show build process
-M file:-m to exclude the meaning of the file
-V Vol: New volume.
-graft-point:graft has the meaning of passing or transplanting.
Example 1, mkisofs-r-v-o/tem/system.img/root/home;
In this way, all directory files are placed in the top-level directory of the image file, that is, the/root and/home directories do not exist in System.img, and the files in both directories are placed directly in the top-level directory of the image file.
Example 2, Mkisofs-r-V "linux_file"-o/tem/system.img-m/home/lost+found-graft-point/root=/root/home=/home;
In such a way, the files in/root and/home will exist in the corresponding folder respectively.
Third, Cdrecord: Disc burning tool
Cdrecord-scanbus Dev=ata; <== Query Burner (early way), I tried unsuccessfully.
Cdrecord-scanbus; <== this way instead of the above way. View the recorder coordinates.
Cdrecord-v Dev=x,y,z Blank=[fast|all]
Cdrecord-v Dev=x,y,z-format; <== only for DVD+RW format
Cdrecore-v dev=x,y,z [available parameters function] File.iso
Example:
Cdrecord-v dev=1,0,0 Fs=8m-data-sao driveropts=burnfree/tmp/system.img;
Iv. other common compression and backup tools:
1, DD:
DD if= "input file" of= "Output File" bs= "Block Size" count= "number";
BS if not specified, the default is 512 bytes.
Example:
DD IF=/ETC/PASSWD Of=/tmp/passwd.back;
DD If=/dev/hac of=/tmp/mbr.back bs=512 count=1;
2, Cpio: Can back up anything, including equipment files (temporarily do not understand)