Linux uses tar Backup System

Source: Internet
Author: User
Article Title: Linux uses tar to back up the system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Tar-zcvpf/home/full-backup.tar.gz/-- exclude =/mnt/* -- exclude =/proc/* -- exclude =/sys /*

This command uploads all contents under the root directory to the backup document of full-bakup.tar.gz.


-Z indicates compressed gzip format

-C (create a backup document

-V shows the compression process

-P: Retain file permissions

-- Directory 'specifies a folder that is not backed up


Incremental Backup

1. Create a full backup: tar-czvf-g zeng aa.tar.gz/var

After the data in/var changes

2. Perform Incremental backup again: tar-czvf-g zeng aa.tar.gz. 1/var


Differential backup

1. find/var-mtime-1-print> filelist

List of files to be backed up-1 indicates the time of the day

2. tar-czv-T filelist-f/backup.tar.gz

Backup Based on the file list.-T option can specify a list of files to be backed up

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.