8.7 Backup Service¶
8.7.1 Service Overview¶
Data backup protects important data before failures occur. IHEP currently uses the open-source Amanda backup software. Amanda is a network backup system developed by the University of Maryland. It supports both full backup and incremental backup, transferring data that needs to be protected from the computing environment to backup servers through the network.
Backup policies are designed according to data size, data type, and backup frequency.
8.7.2 Backup Application¶
If data needs to be backed up, first complete the backup application form. The form can be downloaded fromBackup Application Form.
After filling in the form, send it to the Computing Center unified service mailboxhelpdesk@ihep.ac.cnor the computing service mailboxihep_computing_service@ihep.ac.cn.
8.7.3 Backup Policies¶
| Level | Policy | Medium |
|---|---|---|
| 1 | Full backup once per day | Disk |
| 2 | Full backup once per week and incremental backup once per day | Disk |
| 3 | Full backup once per week | Disk |
| 4 | Full backup once per month and incremental backup once per day | Disk |
| 5 | Full backup once per month and incremental backup once per week | Disk |
| 6 | One full backup, retained long term | Tape |
8.7.4 Backup Directories¶
Only directories listed below are backed up. Data outside the list is not backed up.
| Application | Directory | Backup policy |
|---|---|---|
| BES | /besfs5/homebes | Daily backup; data can be restored within one month |
| BSRF | /home/bsrf | Daily backup; data can be restored within two weeks |
| LHC | /home/lhc | Daily backup; data can be restored within two weeks |
| CC | /home/cc | Daily backup; data can be restored within two weeks |
| ATLAS | /afs/ihep.ac.cn/soft/atlas | Weekly backup; data can be restored within one month |
| CMS | /afs/ihep.ac.cn/soft/CMS | Weekly backup; data can be restored within one month |
| Public directory | /afs/ihep.ac.cn/users | Daily backup; data can be restored within two weeks |
| Public directory | /workfs2 | Daily backup; data can be restored within one month |
8.7.5 Amanda Backup Client Installation¶
- Create the
amandabackupuser:
Set the user shell to/bin/shand home directory to/var/lib/amanda.
Install the Amanda client package.
Check
/etc/xinetd.d/amandaclient:
serviceamanda{disable=nosocket_type=streamprotocol=tcpwait=nouser=amandabackupgroup=diskgroups=yesserver=/usr/libexec/amanda/amandadserver_args=-auth=bsdtcpamdump}
- Restart
xinetd:
- As the
amandabackupuser, edit/var/lib/amanda/.amandahostsand add the backup servers:
bak01.ihep.ac.cnamandabackupamdumpbak02.ihep.ac.cnamandabackupamdumpbak03.ihep.ac.cnamandabackupamdumpbak04.ihep.ac.cnamandabackupamdumpbak05.ihep.ac.cnamandabackupamdumpbak06.ihep.ac.cnamandabackupamdumpbak07.ihep.ac.cnamandabackupamdumpbak08.ihep.ac.cnamandabackupamdumpchmod700/var/lib/amanda/.amandahosts
Adjust firewall rules and inform the system administrator of the machine and directories to be backed up.
Configure recovery support:
Create/etc/amanda/amanda-client.confasamandabackupand configureconf,index_server,tape_server, andauthaccording to administrator instructions.
8.7.6 Amanda Data Recovery¶
Restore files in a temporary directory such as/tmpto avoid overwriting files with the same name. Recovery must be performed on the client machine asroot.
Example workflow:
# cd /tmp# amrecover Dailysetamrecover>listdiskamrecover>setdisk/var/www/htmlamrecover>lsamrecover>cdtar-1.15amrecover>addscripts/amrecover>addconfigureamrecover>adddoc/amrecover>lcd/tmpamrecover>extractamrecover>quit
Commonamrecovercommands:
amrecover>listdiskamrecover>setdiskamrecover>setdateYYYY-MM-DDamrecover>additem1item2amrecover>addxitem1item2amrecover>lpwdamrecover>lcdpathamrecover>extract
Ifsetdiskreports that there are no index records for the specified date, contact the administrator immediately.
FAQ¶
SeeFAQ.
有问题?输入后跳转到对话页继续交流