from small one page howto to huge articles all in one place
 

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

37372

userrating:

average rating: 1.5 (4 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tutorials per portage category->app-admin->amanda

Amanda - Creating Successful Backups

by Gavin Henry

Amanda, the Advanced Maryland Automatic Network Disk Archiver;

is a backup system that allows the administrator of a LAN to set up a single master backup server to back up multiple hosts to a single large capacity tape drive. Amanda uses native dump and/or GNU tar facilities and can back up a large number of workstations running multiple versions of Unix. Recent versions can also use SAMBA to back up Microsoft Windows hosts.

NOTICE: This is an updated and amended version for Fedora, using Xander Harkness' (http://www.harkness.co.uk/) original article with his permission.

I was searching a few weeks ago for a good backup program and tried Arkeia and hated it, as it was very complicated. Xander shared my feelings, as indicated on his site, and I thought I would use his excellent article, but update it for this.

The installation and configuration can be done over a few evenings or mornings for the typical system administrator or home user, or in one day, if you have time.

NOTE: This tutorial assumes you have a working and installed SCSI tape drive.

Installation - Server Side

Download packages the rpm packages (for server and clients, issue rpm -ivh *.rpm in the appropriate directory.):

amanda-2.4.4p1-1.i386.rpm for the server and client.

amanda-client-2.4.4p1-1.i386.rpm for the client only.

amanda-server-2.4.4p1-1.i386.rpm for the server only.

or simply:

apt-get install amanda amanda-client and

apt-get install amanda amanda-server
or use the the package management tool for your distro (emerge, yum, rpm, ...)

Now onto the configuration;

Step 1

Run the command:

amtapetype -f /dev/nst0
(this is not a spelling mistake).
This is done so that you may receive an analysis of the tape device and the tape types. This is relevant, for example a Compaq 12/24 Gb DAT drive using DDS3 tapes may only provide 10Gb of space for backups. If the AMANDA configuration is told that the tapes will hold 12Gb then you will consistently get failed backups owing to lack of space.

The output from tapetype may well take many hours as it writes to the complete tape a couple of times.

The output will look something like this:

tapetype tape-dds3 {
comment "just produced by tapetype program"
length 9922 mbytes
filemark 0 kbytes
speed 973 kps
}
NOTE: The comment and typetype can be anything you like. You need to edit the file
/etc/amanda/DailySet1/amanda.conf
about half-way down the file you will find many tape definitions and you should add the new one you have just created. Please note that the name of the tape should be unique within the file, I have called mine SONY-DSS-4. do not put spaces in, keep it short and simple. You will see other tape names such as DAT and QIC-60. Also ensure you get both parentheses in too. Further up in the file you will see the definition within the configuration file: tapetype HP-DAT (or similar), this should be changed to tapetype yournewname.

There are three amanda packages available for Fedora, these are amanda, amanda-client and amanda-server. For the clients you will only need amanda and amanda-client. For the server you will obviously need amanda-server. There is an example configuration in /etc/amanda/DailySet1/, using this and modifying the files to make them work for the particular setup required is the easiest option.

Step 2

Edit the file /etc/amanda/DailySet1/amanda.conf, the items you need to set in this file are as follows:

org - This is in the email subject to differentiate between different backups.

mailto - This should be set to the administrator's email addresses. Multiple addresses may be entered separated by spaces.

tapecycle - This is the number of tapes in circulation. It is much easier if the tapes are labelled before we start testing. If Amanda encounters an unlabelled tape, it will be rejected rather than attempt to overwrite it.

tapedev /dev/null - this should be changed to tapedev /dev/nst0, as this is the non-rewinding device for Linux.

Step 3

Label a tape:

The command should be run as amanda, so here we have the command, by the user root

su amanda -c "/usr/sbin/amlabel DailySet1 DailySet101"
This command may be broken down as follows:

su (super user / switch user) to amanda -c (run command as this user) amlabel a tape belonging to backup group DailySet1 and label it as DailySet101. Note that the amanda.conf file specifies what the tapes may be labelled as, by default this is DailySet100 to DailySet199. The default back up cycle is a month.

If there is an error you normally get a good error message to advise you how to fix it. You will probably get a warning message regarding inability to read .bashrc, this is not something to worry about. I would suggest getting one backup to work and then labelling all the tapes, this may take some time as each tape could take 30-45 seconds to label.

Now we set one partition to backup:

Before this step make sure, as root, you change (on the server and on the client) disable = no in /etc/xinetd.d/amanda and /etc/xinetd.d/amandaidx (on the client only) then service xinetd restart. Issue a netstat -ul | grep amanda and you should have

udp        0      0 *:amanda                *:*

edit file /etc/amanda/DailySet1/disklist down at the bottom, comment out using # all of the backups that are there by default or for example.

Put in one backup that being the name of your machine:

localhost /etc comp-root-tar This will only backup the /etc partition, which is normally quite small and makes a good test.

Final task for Step 3 is to test and then run a backup:

run the command:

su amanda -c "/usr/sbin/amcheck DailySet1"

This should give us some diagnostic data and tell us whether there are any problems. If this is the first time the backup has been run, it will normally complain about missing index files. These are created during the backup.

Try running the backup and it will continue until finished at which point it will send the admins an email to tell you all is done and provide a report:

su amanda -c "/usr/sbin/amdump DailySet1"

Step 4

Once we have operational backups, we can then automate them:

As root run the following command:

crontab -e
This will normally open the vi editor to edit your cron schedule.

press i to insert and type the following:

# backup daily

5 2 * * 1,2,3,4,5 su amanda -c "/usr/sbin/amdump DailySet1"
0 16 * * 1,2,3,4,5 su amanda -c "/usr/sbin/amcheck DailySet1"

These will run backups at 2:05am every weekday (late Sunday night - Monday morning) and at 4pm run a diagnostic to ensure that you have put the correct tape in and that all backup hosts are available.

Step 5

The last jobs are to add disks / machines to the backup, this will probably carry on over time as the system is tweaked and machines are added to the network.

The Amanda client is only available to Unix systems at present; however other systems may be backed up using file shares and the samba libraries.

For every machine that you add to the disklist / backup you have to tell the client machine that it authorises the backup server to access it. This is done by putting the backup server name in the following file:

/var/lib/amanda/.amandahosts

Just put the server name on a line on its own. Please note that the authorisation will fail if it fails to resolve this IP using DNS. To get round this you can enter the name and IP address in the /etc/hosts file.

you can then add more machines to the disk list as follows:

client1.domain.co.uk /etc comp-root-tar

client1.domain.co.uk /home comp-root-tar

client2.domain.co.uk hda1 comp-root-tar

NOTE: You can either use hardware names or the partitions

The hard drive names may be found using the command mount with no arguments. Please also note that amanda cannot backup a disk or partition larger than one disk at present. This may change in the future. Amanda works very well spreading full backups across the backup cycle, so that full backups are done as frequently as possible and does not leave a huge backup rush at the month end.

Windows systems:

To backup windows systems you may wish to ensure that you have the latest version of Amanda available.

These systems are also entered into the disklist file as follows:

sambaserver.domain.com //windowsclient/share comp-root-tar

Windows clients also need to use another file containing the passwords for the shares: The share containing the passwords is /etc/amandapass and has the following format:

//windowsmachine/share user%pass

This file must be readable only by user amanda and group disk. This can be adjusted using the following commands:

chown amanda.disk /etc/amandapass
chmod o-rwx /etc/amandapass

NOTE: I had loads of trouble getting xinetd.d to make amanda to listen on the server, this was due to the following line being missing in /etc/xinetd.conf

includedir /etc/xinetd.d

I hope everything is straight forward for you. Please e-mail me below if you have any troubles :-)

Well, that's it for now. For any comments or corrections, please e-mail me.

Keep an eye out for "Amanda - Restoring Successful Backups".


rate this article:
current rating: average rating: 1.3 (3 votes) (1=very good 6=terrible)
Your rating:
Very good (1) Good (2) ok (3) average (4) bad (5) terrible (6)

back
Please read "Why adblockers are bad".



other Ads
Trace My Cash
Wenn Sie sich schon immer mal gefragt haben, wo eigentlich Ihr geliebtes Bargeld geblieben ist, finden Sie hier vielleicht die Antwort.
www.tracemycash.com
Other free services
toURL.org
Shorten long
URLs to short
links like
http://tourl.org/2
tourl.org
.
Reverse DNS lookup
Find out which hostname(s)
resolve to a
given IP or other hostnames for the server
www.reversednslookup.org

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2017-04-28
allin1 - 0.5.0-r2
Ebuild name:

x11-plugins/allin1-0.5.0-r2

Description

All in one monitoring dockapp RAM, CPU, Net, Power, df, seti

Added to portage

2017-04-28

cutecom - 0.40.0-r1
Ebuild name:

net-dialup/cutecom-0.40.0-r1

Description

CuteCom is a serial terminal, like minicom, written in qt

Added to portage

2017-04-28

facter - 3.6.4
Ebuild name:

dev-ruby/facter-3.6.4

Description

A cross-platform ruby library for retrieving facts from operating systems

Added to portage

2017-04-28

libkgapi - 17.04.0-r1
Ebuild name:

kde-apps/libkgapi-17.04.0-r1

Description

Library for accessing Google calendar and contact resources

Added to portage

2017-04-28

opera-beta - 45.0.2552.626
Ebuild name:

www-client/opera-beta-45.0.2552.626

Description

A fast and secure web browser

Added to portage

2017-04-28

2017-04-27
abcmidi - 2017.04.19
Ebuild name:

media-sound/abcmidi-2017.04.19

Description

Programs for processing ABC music notation files

Added to portage

2017-04-27

aunit - 2016
Ebuild name:

dev-ada/aunit-2016

Description

Ada unit testing framework

Added to portage

2017-04-27

autoconf - 2.69-r3
Ebuild name:

sys-devel/autoconf-2.69-r3

Description

Used to create autoconfiguration files

Added to portage

2017-04-27

backports - 3.8.0
Ebuild name:

dev-ruby/backports-3.8.0

Description

Backports of Ruby features for older Ruby

Added to portage

2017-04-27

busybox - 1.26.2-r1
Ebuild name:

sys-apps/busybox-1.26.2-r1

Description

Utilities for rescue and embedded systems

Added to portage

2017-04-27

chrome-gnome-shell - 9
Ebuild name:

gnome-extra/chrome-gnome-shell-9

Description

GNOME Shell integration for Chrome/Chromium, Firefox, Vivaldi, Ope

Added to portage

2017-04-27

collada_parser - 1.12.9
Ebuild name:

dev-ros/collada_parser-1.12.9

Description

C++ parser for the Collada robot description format

Added to portage

2017-04-27

collada_urdf - 1.12.9
Ebuild name:

dev-ros/collada_urdf-1.12.9

Description

Tool to convert Unified Robot Description Format (URDF) documents into

Added to portage

2017-04-27

composer - 1.4.1
Ebuild name:

dev-php/composer-1.4.1

Description

Dependency Manager for PHP

Added to portage

2017-04-27

diagnostic_aggregator - 1.9.0
Ebuild name:

dev-ros/diagnostic_aggregator-1.9.0

Description

Aggregates ROS diagnostics

Added to portage

2017-04-27

diagnostic_analysis - 1.9.0
Ebuild name:

dev-ros/diagnostic_analysis-1.9.0

Description

Converts diagnostics data into a series of CSV files

Added to portage

2017-04-27

diagnostic_common_diagnostics - 1.9.0
Ebuild name:

dev-ros/diagnostic_common_diagnostics-1.9.0

Description

Generic nodes for monitoring a linux host

Added to portage

2017-04-27

diagnostic_updater - 1.9.0
Ebuild name:

dev-ros/diagnostic_updater-1.9.0

Description

Tools for updating diagnostics

Added to portage

2017-04-27

diagnostics - 1.9.0
Ebuild name:

ros-meta/diagnostics-1.9.0

Description

Packages related to gathering, viewing, and analyzing diagnostics data f

Added to portage

2017-04-27

execline - 2.3.0.0
Ebuild name:

dev-lang/execline-2.3.0.0

Description

a non-interactive scripting language

Added to portage

2017-04-27

filebeat - 5.3.1
Ebuild name:

app-admin/filebeat-5.3.1

Description

Lightweight log shipper for Logstash and Elasticsearch

Added to portage

2017-04-27

filters - 1.8.1
Ebuild name:

dev-ros/filters-1.8.1

Description

Standardized interface for processing data as a sequence of filters

Added to portage

2017-04-27

flow_parser - 0.44.1
Ebuild name:

dev-ml/flow_parser-0.44.1

Description

JavaScript parser written in OCaml

Added to portage

2017-04-27

gentoo-sources - 4.10.13
Ebuild name:

sys-kernel/gentoo-sources-4.10.13

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

gentoo-sources - 4.4.64
Ebuild name:

sys-kernel/gentoo-sources-4.4.64

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

gentoo-sources - 4.9.25
Ebuild name:

sys-kernel/gentoo-sources-4.9.25

Description

Full sources including the Gentoo patchset for the . kernel tree

Added to portage

2017-04-27

git - 2.13.0_rc1
Ebuild name:

dev-vcs/git-2.13.0_rc1

Description

stupid content tracker distributed VCS designed for speed and efficiency

Added to portage

2017-04-27

graphite2 - 1.3.8-r1
Ebuild name:

media-gfx/graphite2-1.3.8-r1

Description

Library providing rendering capabilities for complex non-Roman writing

Added to portage

2017-04-27

graphite2 - 1.3.9-r1
Ebuild name:

media-gfx/graphite2-1.3.9-r1

Description

Library providing rendering capabilities for complex non-Roman writing

Added to portage

2017-04-27

grub - 2.02
Ebuild name:

sys-boot/grub-2.02

Description

GNU GRUB boot loader

Added to portage

2017-04-27

hyperscan - 4.4.1-r1
Ebuild name:

dev-libs/hyperscan-4.4.1-r1

Description

High-performance regular expression matching library

Added to portage

2017-04-27

jenkins-bin - 2.46.2
Ebuild name:

dev-util/jenkins-bin-2.46.2

Description

Extensible continuous integration server

Added to portage

2017-04-27

jenkins-bin - 2.57
Ebuild name:

dev-util/jenkins-bin-2.57

Description

Extensible continuous integration server

Added to portage

2017-04-27

joint_state_publisher - 1.12.9
Ebuild name:

dev-ros/joint_state_publisher-1.12.9

Description

Tool for setting and publishing joint state values for a given

Added to portage

2017-04-27

judy - 1.0.5-r1
Ebuild name:

dev-libs/judy-1.0.5-r1

Description

A C library that implements a dynamic array

Added to portage

2017-04-27

kdl_parser - 1.12.9
Ebuild name:

dev-ros/kdl_parser-1.12.9

Description

Constructs a KDL tree from an XML robot representation in URDF

Added to portage

2017-04-27

kdl_parser_py - 1.12.9
Ebuild name:

dev-ros/kdl_parser_py-1.12.9

Description

Python tools to construct a KDL tree from an XML robot representation

Added to portage

2017-04-27

live - 2017.04.26
Ebuild name:

media-plugins/live-2017.04.26

Description

Libraries for standards-based RTP/RTCP/RTSP multimedia streaming

Added to portage

2017-04-27

lnav - 0.8.2
Ebuild name:

app-admin/lnav-0.8.2

Description

A curses-based tool for viewing and analyzing log files

Added to portage

2017-04-27

logstash-bin - 5.3.1
Ebuild name:

app-admin/logstash-bin-5.3.1

Description

Tool for managing events and logs

Added to portage

2017-04-27

mail - 2.6.5
Ebuild name:

dev-ruby/mail-2.6.5

Description

An email handling library

Added to portage

2017-04-27

mcstrans - 9999
Ebuild name:

sys-apps/mcstrans-9999

Description

SELinux context translation to human readable names

Added to portage

2017-04-27

moreutils - 0.61
Ebuild name:

sys-apps/moreutils-0.61

Description

a collection of tools that nobody thought to write when Unix was young

Added to portage

2017-04-27

munkres - 1.0.8
Ebuild name:

dev-python/munkres-1.0.8

Description

Module implementing munkres algorithm for the Assignment Problem

Added to portage

2017-04-27

parallel - 20170422
Ebuild name:

sys-process/parallel-20170422

Description

A shell tool for executing jobs in parallel locally or on remote mach

Added to portage

2017-04-27

pcl_ros - 1.5.1
Ebuild name:

dev-ros/pcl_ros-1.5.1

Description

PCL (Point Cloud Library) ROS interface stack

Added to portage

2017-04-27

perception_pcl - 1.5.1
Ebuild name:

ros-meta/perception_pcl-1.5.1

Description

PCL (Point Cloud Library) ROS interface stack

Added to portage

2017-04-27

percona-xtrabackup - 2.4.7
Ebuild name:

dev-db/percona-xtrabackup-2.4.7

Description

Hot backup utility for MySQL based servers

Added to portage

2017-04-27

pikopixel - 1.0_beta7
Ebuild name:

gnustep-apps/pikopixel-1.0_beta7

Description

a free application for drawing & editing pixel-art images

Added to portage

2017-04-27

ppx_import - 1.2
Ebuild name:

dev-ml/ppx_import-1.2

Description

A syntax extension for importing declarations from interface files

Added to portage

2017-04-27

pygame - 1.9.3
Ebuild name:

dev-python/pygame-1.9.3

Description

Python bindings for SDL multimedia library

Added to portage

2017-04-27

pyudev - 0.21.0
Ebuild name:

dev-python/pyudev-0.21.0

Description

Python binding to libudev

Added to portage

2017-04-27

restorecond - 9999
Ebuild name:

sys-apps/restorecond-9999

Description

Daemon to watch for creation and set default SELinux fcontexts

Added to portage

2017-04-27

robot_model - 1.12.9
Ebuild name:

ros-meta/robot_model-1.12.9

Description

Packages for modeling various aspects of robot information

Added to portage

2017-04-27

rosdiagnostic - 1.9.0
Ebuild name:

dev-ros/rosdiagnostic-1.9.0

Description

Command to print aggregated diagnostic contents to the command line

Added to portage

2017-04-27

rosdiagnostic - 9999
Ebuild name:

dev-ros/rosdiagnostic-9999

Description

Command to print aggregated diagnostic contents to the command line

Added to portage

2017-04-27

s6 - 2.5.0.0
Ebuild name:

sys-apps/s6-2.5.0.0

Description

skarnet.org's small and secure supervision software suite

Added to portage

2017-04-27

s6-dns - 2.2.0.0
Ebuild name:

net-dns/s6-dns-2.2.0.0

Description

suite of DNS client programs and libraries for Unix systems

Added to portage

2017-04-27

s6-linux-init - 0.3.0.0
Ebuild name:

sys-apps/s6-linux-init-0.3.0.0

Description

Generates an init binary for s6-based init systems

Added to portage

2017-04-27

s6-linux-utils - 2.3.0.0
Ebuild name:

sys-apps/s6-linux-utils-2.3.0.0

Description

set of tiny linux utilities

Added to portage

2017-04-27

s6-networking - 2.3.0.0
Ebuild name:

net-misc/s6-networking-2.3.0.0

Description

suite of small networking utilities for Unix systems

Added to portage

2017-04-27

s6-portable-utils - 2.2.0.0
Ebuild name:

sys-apps/s6-portable-utils-2.2.0.0

Description

set of tiny portable unix utilities

Added to portage

2017-04-27

s6-rc - 0.2.0.0
Ebuild name:

sys-apps/s6-rc-0.2.0.0

Description

service manager for the s6 supervision suite

Added to portage

2017-04-27

seafile-client - 6.0.4-r2
Ebuild name:

net-misc/seafile-client-6.0.4-r2

Description

Seafile desktop client

Added to portage

2017-04-27

self_test - 1.9.0
Ebuild name:

dev-ros/self_test-1.9.0

Description

Robot self-test node

Added to portage

2017-04-27

signify - 20
Ebuild name:

app-crypt/signify-20

Description

Cryptographically sign and verify files

Added to portage

2017-04-27

skalibs - 2.5.0.0
Ebuild name:

dev-libs/skalibs-2.5.0.0

Description

skarnet.org general-purpose libraries

Added to portage

2017-04-27

sudo - 1.8.20_beta2
Ebuild name:

app-admin/sudo-1.8.20_beta2

Description

Allows users or groups to run commands as other users

Added to portage

2017-04-27

syncthing - 0.14.27
Ebuild name:

net-p2p/syncthing-0.14.27

Description

Open Source Continuous File Synchronization

Added to portage

2017-04-27

tcpreplay - 4.2.4
Ebuild name:

net-analyzer/tcpreplay-4.2.4

Description

utilities for editing and replaying previously captured network traffi

Added to portage

2017-04-27

teamviewer - 12.0.76279
Ebuild name:

net-misc/teamviewer-12.0.76279

Description

All-In-One Solution for Remote Access and Support over the Internet

Added to portage

2017-04-27

test_diagnostic_aggregator - 1.9.0
Ebuild name:

dev-ros/test_diagnostic_aggregator-1.9.0

Description

diagnostic_aggregator tests

Added to portage

2017-04-27

tigervnc - 1.7.1-r3
Ebuild name:

net-misc/tigervnc-1.7.1-r3

Description

Remote desktop viewer display system

Added to portage

2017-04-27

tor - 0.3.0.6
Ebuild name:

net-vpn/tor-0.3.0.6

Description

Anonymizing overlay network for TCP

Added to portage

2017-04-27

torque - 6.0.3
Ebuild name:

sys-cluster/torque-6.0.3

Description

Resource manager and queuing system based on OpenPBS

Added to portage

2017-04-27

urdf - 1.12.9
Ebuild name:

dev-ros/urdf-1.12.9

Description

C++ parser for the Unified Robot Description Format (URDF)

Added to portage

2017-04-27

urdf_parser_plugin - 1.12.9
Ebuild name:

dev-ros/urdf_parser_plugin-1.12.9

Description

C++ base class for URDF parsers

Added to portage

2017-04-27

vanilla-sources - 4.10.13
Ebuild name:

sys-kernel/vanilla-sources-4.10.13

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vanilla-sources - 4.4.64
Ebuild name:

sys-kernel/vanilla-sources-4.4.64

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vanilla-sources - 4.9.25
Ebuild name:

sys-kernel/vanilla-sources-4.9.25

Description

Full sources for the Linux kernel

Added to portage

2017-04-27

vivaldi - 1.9.818.44_p1
Ebuild name:

www-client/vivaldi-1.9.818.44_p1

Description

A new browser for our friends

Added to portage

2017-04-27

xapian - 1.4.4
Ebuild name:

dev-libs/xapian-1.4.4

Description

Xapian Probabilistic Information Retrieval library

Added to portage

2017-04-27

xapian-bindings - 1.4.4
Ebuild name:

dev-libs/xapian-bindings-1.4.4

Description

SWIG and JNI bindings for Xapian

Added to portage

2017-04-27

xapian-omega - 1.4.4
Ebuild name:

app-text/xapian-omega-1.4.4

Description

An application built on Xapian, consisting of indexers and a CGI search

Added to portage

2017-04-27

zziplib - 0.13.62-r2
Ebuild name:

dev-libs/zziplib-0.13.62-r2

Description

Lightweight library for extracting data from files archived in a single

Added to portage

2017-04-27

rdf newsfeed | rss newsfeed | Atom newsfeed
- Powered by LeopardCMS - Running on Gentoo -
Copyright 2004-2017 Sascha Nitsch Unternehmensberatung UG(haftungsbeschänkt)
Valid XHTML1.1 : Valid CSS : buttonmaker
- Level Triple-A Conformance to Web Content Accessibility Guidelines 1.0 -
- Copyright and legal notices -
Time to create this page: 5.6 ms
system status display