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:
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:
Host Hardware: Use a separate filesystem to store the backup data, which is filesystem mounted to /backup ;
Daily: Backup only now MySQL database;
Weekly: Including /home,/Var, etc,/boot,/usr/local directory and Special services directory;
Automatic Processing: This aspect uses the/etc/crontab to provide the backup;
Offsite Redundancy: monthly data is (a) Burn to Disc (b) use the network to transfer to another machine.
Script for remote redundancy
Use FTP upload backup Data
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:
First unplug the network cable, it is best to complete the system backup to other media for future inspection
Start checking the login file and try to find out the various possible problems
start installing the new system ( best to find the latest distribution)
System upgrades, and the development of firewall-related mechanisms
based on the 2 error, after installing the new system, fix The bugs
Recovery of services and related data
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