Explanation of common Linux backup methods through multiple channels

Source: Internet
Author: User

In Linux, there are many backup methods in Linux. Some time ago, I carefully studied the backup methods in Linux. I 'd like to share it with you here and hope it will be useful to you.

You can use the following methods to back up data in Linux:
1. Use a USB flash drive or a mobile hard disk to prepare important data for the computer;
2. Use a burner to compress important data into a cd;
3. Save data outside the system partition to avoid data loss caused by system reinstallation or system damage;
4. Use a floppy disk to back up data;
5. Use GHOST to back up data and systems. This method can compress data)
To sum up the various backup methods described above, each has its own strengths and weaknesses. You only need to select a backup method suitable for you based on your actual situation. For how to use GHOST, give it a look. I hope it will help you.
How to Use Ghost in Linux backup mode
The following is an example:
1. command line parameters: ghostpe.exe-clone, mode = copy, src = 1, dst = 2
Complete the operation: Copy local disk 1 to local Disk 2.
2. command line parameters: ghostpe.exe-clone, mode = pcopy, src =, dst =
Complete: copy the second partition on ephemeral Disk 1 to the first partition on ephemeral Disk 2.
3. command line parameters: ghostpe.exe-clone, mode = load, src = g: \ 3prtdisk. gho, dst = 1, sze1 = 450 M, sze2 = 1599 M, sze3 = 2047 M
Complete the operation: load disk 1 from the image file, adjust the size of the first partition to 450 MB, the second to 1599 MB, and the third to 2047 MB.
4. command line parameters: ghostpe.exe-clone, mode = pdump, src2: 1: 4: 6, dst = d: \ prt246.gho
Complete: create an image file containing only the selected partition. Select partitions 1, 4, and 6 from Disk 2.

Examples
Ghost.exe-clone, mode = copy, src = 1, dst = 2-sure
Hard Disk copy
Ghost.exe-clone, mode = pcopy, src =, dst = 2:1-sure
Copy the second partition of Hard Disk 1 to the first partition of Hard Disk 2.
Ghost.exe-clone, mode = pdump, src =, dst = g: \ bac. gho
Make the second partition of Hard Disk 1 into an image file and put it in the g partition.
Ghost.exe-clone, mode = pload, src = g: \ bac. gho: 2, dst =
Restore the second partition to the second partition of the hard disk from the image file with two internal partitions.
Ghost.exe-clone, mode = pload, src = g: \ bac. gho, dst = 1:1-fx-sure-rb
Use the g drive's bac. gho file to restore the c drive. Start directly without displaying any information
Ghost.exe-clone, mode = load, src = g: \ bac. gho, dst = 2, SZE1 = 60 P, SZE2 = 40 P
Restore the image file to the second hard disk and change the partition size ratio to 60: 40.

Automatic disk Restoration:
First, create a boot disk, including the Config. sys, Autoexec. bat, Command.com, Io. sys, and Ghost.exe files (you can use windows as the boot disk program ). Autoexec. bat contains the following commands:
Ghost.exe-clone, mode = pload, src = d: \ bac. gho, dst = 1:1-fx-sure-rb
The ghost is automatically exited and restarted after the file on drive D is restored automatically.

Automatic disk backup:
Ghost.exe-clone, mode = pdump, src = 1:1, dst = d: \ bac. gho-fx-sure-rb

Auto-restore:
Include the following files: Config. sys, Autoexec. bat, Mscdex.exe (CDROM executable program), Oakcdrom. sys (atapi cdrom compatible driver), and Ghost.exe.
The Config. sys content is:
DEVICE = OAKCDROM. SYS/D: IDECD001
The Autoexec. bat content is:
MSCDEX. EXE/D: IDECE001/L: Z
Ghost-clone, mode = load, src = z: \ bac. gho, dst = 1:1-sure-rb

You can modify the example according to the following description:
1.-clone
-When using clone, you must add parameters. It is also the most practical among all switches {batch switch. The following are the parameters defined by clone:
Mode = {copy | load | dump | pcopy | pload | pdump },
Src = {drive | file | driveartition },
Dst = {drive | file | driveartition}

◆ Mode specifies the clone command to be used.
Copy a disk to a disk copy)
Load file to disk load)
Dump: make the hard disk an image file (disk to file dump)
Partition to partition copy)
Restore A pload file to a partition (file to partition load)
Pdump partition backup to image file partition to file dump)

◆ Src specifies the location mode of the source partition used for ghost running and its significance. Example of parameters used by the mode command src:
COPY/DUMP source hard disk number. 1 represents the first hard disk
LOAD image file name. G:/back98/setup98.gho or device name (drive)
PCOPY/PDUMP source Partition Number. Represents the second partition of Hard Disk 1
Add the partition code or drive name to the name of the PLOAD partition image. G: \ back98.gho: 2 indicates the second partition in the image file.

◆ Dst specifies the target location mode used for running Ghost and its significance. Example of the parameter used by the mode command dst:
COPY/DUMP destination hard disk number. 2 represents the second hard drive
LOAD hard disk image file name. Example g: \ back98 \ setup98.gho
PCOPY/PLOAD destination Partition Number. Represents the second partition of Hard Disk 2
PDUMP partition image file name plus area code. G: \ back98 \ setup98.gho: 2

◆ SZEn specifies the size of the target partition used:

◆ N = xxxxM specifies the size of the destination n partition to xxxxMB. For example, SZE2 = 800 M indicates that partition 2 is 800 MB.

◆ N = mmP specifies the n partition size as the mm percentage of the entire hard disk.
2.-fxo force replication to continue when the source object contains bad Blocks
3.-fx when the ghost completes the work of the new system, press ctrl-alt-del to reboot is not displayed and return directly to DOS.
4.-ia completely copies the slice to the slice. When copying a partition from an image file or from another hard disk, Ghost in Linux backup will first check the source partition, then decide whether to copy the file and directory structure or copy the image (sector to sector ). This is the default format. However, sometimes some hidden files related to system security may be stored in a specific location on the hard disk. Only sector-to-sector replication can be performed correctly.
5.-pwd and-pwd = x encrypt the image file
6.-After the rb is restored or copied, restart the system.
7.-sure can be used with clone. Does Ghost display proceed with disk clone-destination drive will be overwritten? Prompt information

  1. Describes the entire process of Linux User Management
  2. Responsibilities and learning scope of Linux network engineers
  3. Linux file commands
  4. Fully explain the advantages of Linux Virtualization
  5. Linux memory management-discontinuous physical address allocation (vmalloc)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.