Amanda (Advanced Maryland Automatic Network Disk archive Advanced Maryland Automatic IC Network Disk Archiver
I have heard of network backup software since I first came into contact with Linux, but I have never used it. When I need to back up data, I write a simple script and use cron for scheduled tasks, it can also basically meet the needs. Although I used to think about using Amanda, I can only give up if there is no suitable environment.
The current situation is different. Four or five servers need to be backed up and designed for different platforms. The backup features should meet or at least move closer to enterprise-level standards. Therefore, I have looked at Amanda's documents over the past few days and conducted some tests. The configuration is successful in my environment. I will record it and share it with you.
This project will be divided into two documents. This article describes file backup and the next article describes the backup methods for MySQL databases.
The configuration process is as follows:
- Install and configure the Amanda backup server
- Install the Amanda Client
- Configure server and client Parameters
- Check Configuration
- Verify backup
- Test recovery
The following list shows the network and machine configurations of the test environment.
Machine name |
File to be backed up |
OS |
Compression or not |
Description |
Cp1.domain.com |
- |
Ubuntu 8.10 |
Yes |
Amanda Server |
Cp2.domain.com |
/Web/websites |
Asianux 3.0 |
Yes |
Client, running a large number of websites |
Cp3.domain.com |
/Opt/www |
CentOS 1, 5.3 |
Yes |
IDC servers, a large number of customer sites |
1. install and configure the Amanda Service
First from the official site now corresponding to the latest OS Amanda version, I wrote this post, for Ubuntu 8.10 Latest Version 2.6.1p1, you can find the appropriate version from the http://www.zmanda.com/download-amanda.php, including the server and client.
The following operations are performed on the cp1 machine. If not specified, the account used is root.
Because the ubuntu repository comes with a relatively low version and is somewhat different from the official version in terms of configuration, we recommend that you uninstall the built-in version and then install the downloaded version.
The startup of the Amanda service depends on the xinetd super service. Edit or create the/etc/xinetd. d/amandaserver file. The content should look like the following:
# default: on## description: Amanda services for Amanda server and client.# service amanda{ disable = no# flags = IPv6 socket_type = stream protocol = tcp wait = no user = amandabackup group = disk groups = yes server = /usr/libexec/amanda/amandad server_args = -auth=bsdtcp amdump amindexd amidxtaped}
Restart the xinetd service
Root @ cp1 :~ #/Etc/init. d/xinetd reload
* Reloading internet superserver configuration xinetd [OK]
Root @ cp1 :~ #
[Content navigation] |
Page 2: install and configure the Amanda Service |
Page 2nd: Install the client |
Page 1: Configure backup Parameters |
Page 1: Test |
Page 1: Recovery |
|