Linux backup dump and reset restore

Source: Internet
Author: User
Tags bz2

Install package Yum Install-y dump

Dump [option] The file name of the original file or directory after backup. Backup specified mount point (only ext2, ext3 file system supported)

-level 0-9 10 backup levels, level is digital, 0 is full backup, 1 is the first incremental backup, and so on

-F file name after backup

After you have successfully backed up, log the backup time to/etc/dumpdates

-V shows more output information during backup

-j Call Bzlib Library to compress the backup file, that is, to compress the backup file into. bz2 format

-W Displays the backup level and backup time of the partition that is allowed to be dump

Example: Dump-0uj-f/root/boot.bak.bz2/boot

restore [mode options] [options]. Revert to the specified mount point (ext2, ext3 file system only)

-C Compare backup data and actual data changes

-I enter interactive mode, manually select the files that need to be recovered

-T view mode for viewing the data in the backup file

-R Restore Mode (will revert to the current folder)

-f Specifies the file name of the backup files

Xfsdump Backup Specifies mount point (xfs file system only)

-L record each backup session header, you can fill in a simple description

-M can record the header of the storage media and can fill in a simple description of this media

-l Specifies 0-9 total 10 levels (0 for full backup, 1 for first incremental backup)

-F file name after backup

Example: Xfsdump-l 0-f/root/boot.bak.xfsdump/boot-l boot_dump-m boot_dump

Xfsrestore restore to a specified mount point (XFS file system only)

-L Display Backup information

-f Specifies the file name of the backup files

-L is the Label name of the Session! The data that can be queried by-I is entered after this option

-S requires a specific directory to recover only a file or directory

Example: Xfsrestore-f/root/boot.bak.2.xfsdump/boot

Linux backup dump and reset restore

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.