Note for Linux by Jes (-linux) Backup policy

Source: Internet
Author: User

Backup essentials:

Considerations for backing up data:

  • Which files to back up:
    what data is important to the system or user? That data is the data worth backing up! such as /etc/* and /home/* .

  • What backup media to choose:
    is it a read-write disc, another hard drive, a different partition on the same drive , or a network redundancy system? Which one is the fastest, cheapest, and can keep the data for the longest time? This can all be considered.

  • Consider how to back up:
    is with a full backup (Ghost- like ) to back up all of your data, or do you use a differential backup to back up only the data that has been altered?

  • Backup frequency:
    For example Mysql is the database backed up every day, and how long does it take to complete the backup?

  • What tools are used for backup:
    is it a backup tool that uses tar,cpio, DD,dump, and so on?



which Linux data has the meaning of backup:

Files that the operating system itself needs to back up:

  • /etc/ Entire Directory

  • /Home Entire Directory

  • /var/spool/mail

  • /boot

  • /root

  • If you have installed other packages yourself, then /usr/local/ or /opt also better back up!



Database aspects of network services:

  • the configuration file of the software itself, for example: /etc/ the entire directory, /usr/local/ Entire Directory

  • the data provided by the software service toWWWandMySQLFor example:
    WWWData:/var/wwwthe entire directory or/srv/wwwThe entire directory, and the user home directory of the system
    MySQL:/var/lib/mysqlEntire Directory

  • Other in Linux the database file of the service provided above the host!



Recommended directories to back up:

  • /boot

  • /etc

  • /home

  • /root

  • /usr/local ( or /opt and /srv , etc. )

  • /var ( Note: Some cache directories in this directory may not be backed up!) )



Directories that do not need to be backed up:

  • / Dev : Do you want to back up this one anyway ?

  • /proc : This really doesn't need to be backed up!

  • /mnt with the /media : If you do not place your own system in this directory, you do not need to backup it.

  • / tmp : Why Save the Archive! No backup required!







The type, frequency, and tool selection of the backup:

cumulative backup of full backups (Incremental Backup)



backup software used by cumulative backups

full backup common tools are Dd,cpio,dump/restore



differential backup of full backups (differential backup)






Vbird 's backup strategy and scripts:

The backup strategy is this:

  1. Host Hardware: Use a separate filesystem to store the backup data, which is filesystem mounted to /backup ;

  2. Daily: Backup only now MySQL database;

  3. Weekly: Including /home,/Var, etc,/boot,/usr/local directory and Special services directory;

  4. Automatic Processing: This aspect uses the/etc/crontab to provide the backup;

  5. Offsite Redundancy: monthly data is (a) Burn to Disc (b) use the network to transfer to another machine.



Script for remote redundancy

    1. Use FTP upload backup Data

    2. upload backup data using rsync





Disaster recovery considerations:

When the hardware is damaged and has full backup data: Restore the complete system back directly

A compromised event arising from a software problem:

  1. First unplug the network cable, it is best to complete the system backup to other media for future inspection

  2. Start checking the login file and try to find out the various possible problems

  3. start installing the new system ( best to find the latest distribution)

  4. System upgrades, and the development of firewall-related mechanisms

  5. based on the 2 error, after installing the new system, fix The bugs

  6. Recovery of services and related data

  7. Officially on-line to provide services and start testing



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Note for Linux by Jes (-linux) Backup policy

Related Article

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.