Linux base Dump and restore

Source: Internet
Author: User

Backup: Dump

When using dump to back up a directory, the following restrictions apply:

o All backup data must be under this directory (in this case:/home/someone/);
O and can only use level 0, i.e. only full backup is supported;
o Support-U selection, that is, the inability to establish/etc/dumpdates this individual level backup time record file;

[email protected] ~]# dump [-SUVJ] [-level] [-~]# dump--S    -u    : Record the dump time to/etc/< c5>-v    -j    2 -level: That's what we talked about, from-0 ~-9-F    : sort of like Tar! Follow the resulting file, or connect for example/dev/-W    

Full backup of a single file system:

#先测试一下, if you want to back up this file system, how much capacity do you need?

# Record the full backup file name as/root/boot.dump and update the log file:

[email protected] ~]# dump-0u
Dump-w # to see if the system files have been dump

Methods for backing up non-file systems, which are single directories

#此时level 1 ~ 9 are not applicable, only level 0 is applicable

revert: Restore

[Email protected] ~]# restore-t [-F DumpFile] [-h] <==to view the dump file [email protected]~]# Restore-c [-F dumpfile] [-D mount Point] <==compare dump with actual file [[email protected]~]# Restore-i [-F DumpFile] <== Enter interactive mode
[[email protected] ~]# Restore-r [-F DumpFile] <== restore entire file system
Select is not a parameter:
Various modes can not be mixed with each other! For example, can not write-TC!
-T: This mode is used to see what important data is contained in the dump backup file! Similar tar-t
function
C: This mode can take the data in the dump to compare with the actual file system,
The files that are recorded in the dump file and are not in the current filesystem are listed in the end.
-I: Import into the mutual mode, you can restore only partial files, used in the dump directory when the restore!
-R: Restores the entire filesystem to a mode that is used to restore the dump for the file system
Report
Other more commonly used options are:
-H: View inode not file system label and other information in full backup data
-F: The dump file you're going to handle is on the back.
-D: With-C to match, you can find out the next mount point does not dump a different file!

? View Backup data content after dump with restore

[Email protected] ~]# restore-t-f/root/boot.dump

Use interactive mode to restore part of a document

[[email protected] mnt]# restore-i-f/root/etc.dump #-help View specific actions




Restore > Extract #开始解压

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.