dcsimg

Easy Backups with AMANDA

Using Amanda allows you quickly and easily implement a robust Open Source backup solution to almost any device, or even multiple devices simultaneously.

Moderation is good in almost all things, but there are a few things you just can’t overdo: Case in point, backups. It’s virtually impossible for your data to be too well backed-up or to have too many copies of your important files. It’s also a good thing to have a lot of options when it comes to backup software, which is why I’m talking about AMANDA this month.

Previously, I showed you how to create local and remote filesystem snapshots using rsnapshot. In that article, I promised to cover a more traditional Open Source backup application in the future. In this column I will be covering AMANDA, the Advanced Maryland Automatic Network Disk Archiver.

With development dating back to 1991, Amanda is one of the oldest and most popular Open Source backup utilities. Amanda allows you to set up a single server to back up multiple networked clients to a tape or disk-based storage system easily. It even allows you to write backups to tape and disk simultaneously, allowing for on-line quick restores from disk and off-site storage for disaster recovery and long-term retention.

Unlike many backup applications, Amanda does not use any proprietary device drivers, meaning any device supported by your operating system should work. From a client perspective, Amanda supports all major UNIX variants as well as Max OS X and Microsoft Windows. Backups are stored in a format that allows for easy recovery with native Linux tools, which can come in quite handy in a pinch. From a security perspective, encryption on a client can ensure security of data in transit and encryption on a backup server can ensure security of data during storage.

Since backup procedures and policies are very specific to individual environments, I’ll cover a basic scenario in this column. The Amanda documentation is extremely thorough and should be able to accommodate any setup you are considering. As binary packages are provided for most major distributions, we will not cover installation from source. I’ll leave items such as encryption as an exercise for the reader.

First, we’ll need to install the Amanda server package on the system we’ll be using as a backup server. Remember you can backup to tape, disk, or both. An intermediate holding area for caching data is not absolutely necessary, but will improve performance significantly and is a best practice. The installation process will create an amandabackup user and should add amandad to your xinetd configuration.

It’s now time to install the Amanda client on any machines you’d like to backup. The installation process will once again create an amandabackup user and should add amandad in a client configuration to your xinetd. Next, create a file named /var/lib/amanda/.amandahosts with the permissions 0700. The file should contain the following:

backuphost.yourdomain.com amandabackup amdump

To backup a Windows client you can either use Samba to mount the Windows machine on the backup server or use the Windows MSI available from the Zmanda site. With Amanda now installed and running on both the client and server it’s time to configure the server.

First, copy the example configuration script to the Amanda configuration directory. Like many example configuration files shipped with Open Source applications, the file is very heavily commented. Once you are more familiar with Amanda you can skip this step and simply create your configuration from scratch, but if this is your first Amanda install the example is the best place to start.

# cp /var/lib/amanda/example/amanda.conf /etc/amanda/DailySet1

The Amanda wiki is a great place to get additional information on the configuration directives. Here are a few of the basic directives you’ll need for a disk based backup.

org "YourCompanyName"
mailto "backup-admin@yourdomain.com"
tapetype HARDDISK
tpchanger "chg-disk"
tapedev "file://path/to/backups/DailySet1/slots"

define tapetype HARDDISK {
 length 10000 mbytes
}

Next, create /etc/amanda/DailySet1/disklist with a list of clients you’d like to backup:

machine.yourdomain.com /path/to backup dumptype

As with the client, you’ll also need to create /var/lib/amanda/.amandahosts.

machine.yourdomain.com root amindexd amidxtaped

You are now ready to create your virtual tape. Next, verify you can successfully perform a backup.

$ amcheck DailySet1

You can now use to perform a backup. You’ll want to add this to cron once your setup is complete. As with any backup installation procedure, you should fully test a restore before you consider your setup complete.

Using Amanda allows you quickly and easily implement a robust Open Source backup solution. You can back up to almost any device, or even multiple devices simultaneously. You even have multiple options, including Zmanda, if you’d like commercial support or professional services.

Comments on "Easy Backups with AMANDA"

clowenstein

Minor quibble: I think there is a word missing in the next-to-last paragraph, which begins “You can now use to perform a backup.”

Comment on the whole series: It would be nice to have a “printer-friendly” option.

Reply
maltamir

I complement you on a well-written article, and I like to see more of these HOW-TO type articles. Unfortunately, all I ever hear about is Amanda, and “easy” here obviously doesn’t mean user-friendly. If I want a command-line, open-source, file-level backup, I’ll just write a tar archive to an NFS mount. I’d like see more on other solutions that do Adaptable System Recovery for Linux, rather than just file-level backup and restore.

Reply

    You alluatcy make it appear so easy together with your presentation however I find this topic to be really one thing which I believe I’d never understand. It kind of feels too complicated and extremely extensive for me. I am looking forward for your subsequent publish, I will attempt to get the cling of it!

    Reply
dragin33

I tried to setup Amanada to backup a windows server from a linux server and it was a disaster. Gave it up..

Reply
mahaavedha

Much as i would appreciate Amanda, I am forced to stick with Veritas Netbackup because NDMP support is not available with any of the open source backup programs.. Strange given the fact that NDMP is an open standard.

Reply
kern

NDMP may be an “open standard”, but it is not Open Source. The sample code is proprietary code licensed by NetApp and Legato. Some time ago, a few very knowledgeable people looked at the NDMP API and informed us (Bacula) that it would be very difficult, if not impossible, for an Open Source program to interface to it.

If you can get the FSF to agree that NDMP is compatible with the GPL license, then you may have a point, otherwise, please realize “open” standard does not necessarily mean Open Source compatible.

Reply
johngalt

Zamanda has windows clients I believe…

I generally always go for a handwritten script but amanda can be useful if set up right…

Reply
nanite

I had a look at Amanda and Zamanda, I also tied to configure an alpha Amanda webmin plugin, but could not get it to work. Command line Amanda worked ok but was kind of prehistoric.

I then looked at backuppc with its web based console, once set-up it was brilliant. If you want a web based backup system that can backup Linux, Windows and Mac have a look at backuppc.

Reply
ibh

There are several backup programs for Linux, each with its strengths. What this article doesn’t seem to touch on is, what about restore? As in, is Amanda a clearinghouse for UNIX-style backups? Or does it provide some tools that make restores easier?

maltamir made an important point when he said, If I want a command-line, open-source, file-level backup, I’ll just write a tar archive to an NFS mount. Utilities like fsdump and rsync are powerful tools for this; add buffer inline to tar and ssh and you have streaming tape backups.

What I’m asking, I guess, is, what makes Amanda more useful (read: worth the extra management effort) than a couple of shell scripts?

Reply
ganesh1953

Is there an easy way print these articles?

Reply
choogendyk

“What makes Amanda more useful (read: worth the extra management effort) than a couple of shell scripts?”

I moved from a fairly complex script of my own to Amanda a couple of years ago. Setting up Amanda wasn’t that difficult. Once it was set up, its intelligent planner, parallelism, and fault tollerance have resulted in all my backups being centralized and self managed. I get emails telling me what it has done. I periodically check up on it to see what it is doing. And, if I need to recover something, it is extremely easy.

When my tape library failed, Amanda continued working. It evaluated available holding disk space and dropped back to incremental only backups. When the tape library was back online, Amanda automatically flushed the incrementals to tape and started scheduling fulls to catch up. I never had to touch Amanda, and I was covered for backups.

For more advantages or reasons to like Amanda, see .

Reply

I appreciate you sharing this article post.Really thank you! Cool.

Reply

It’s appropriate time to make some plans for the future and it is time to be happy. I’ve read this post and if I could I desire to suggest you few interesting things or suggestions. Maybe you can write next articles referring to this article. I wish to read even more things about it!

Reply

Here is an excellent Weblog You may Uncover Fascinating that we encourage you to visit.

Reply

Your post has moved the debate forward. Thanks for sharing!

Reply

If only there were more clever people like you! Buying a used car would be a snap!

Reply

I much prefer informative articles like this to that high brow literature.

Reply

This is the perfect post about how to avoid salvage title vehicles for me to find at this time. Run a Carfax report.

Reply

This is the ideal answer. Everyone should read this. Do not buy a salvage car, run a vehicle report!

Reply

This piece was a lifejacket that saved me from drowning.

Reply

I don’t even know what to say, this made buying a used car so much easier!

Reply

You made several nice points there. I did a search on the theme and found nearly all people will consent with your blog.

Reply

Hiya! Quick question that’s totally off topic. Do you know how to make your site mobile friendly? My website looks weird when viewing from my apple iphone. I’m trying to find a theme or plugin that might be able to fix this issue. If you have any recommendations, please share. Many thanks!

Reply

Hi there, I discovered your web site by way of Google at the same time as searching for a similar matter, your web site came up, it appears to be like great. I’ve bookmarked it in my google bookmarks.

Reply

This is a topic that is close to my heart Many thanks! Where are your contact details though?

Reply

Wow, wonderful blog layout! How long have you been blogging for? you make blogging look easy. The overall look of your site is fantastic, let alone the content!

Reply

Always a big fan of linking to bloggers that I adore but really don’t get quite a bit of link enjoy from.

Reply

As a Newbie, I am continuously browsing online for articles that can aid me. Thank you

Reply

hEWCwD Looking forward to reading more. Great post.Really thank you! Really Cool.

Reply

I guess finding useful, reliable information on the internet isn’t hopeless after all.

Reply

Outstanding post, I think people should larn a lot from this website its rattling user friendly.

Reply

Thank you for any other excellent post. Where else may anybody get that kind of info in such a perfect means of writing? I have a presentation subsequent week, and I am at the look for such information.

Reply

You have brought up a very superb points, thankyou for the post.

Reply

Hiya, I am really glad I have found this information. Nowadays bloggers publish just about gossip and internet stuff and this is really annoying. A good blog with exciting content, this is what I need. Thanks for making this website, and I will be visiting again. Do you do newsletters by email?

Reply

Yeah bookmaking this wasn’t a speculative conclusion outstanding post! .

Reply

Hello i am kavin, its my first occasion to commenting anywhere, when i read this paragraph i thought i could also create comment due to this brilliant post.|

Reply

We came across a cool web-site that you simply may possibly get pleasure from. Take a appear if you want.

Reply

Please pay a visit to the websites we adhere to, including this a single, as it represents our picks through the web.

Reply

We came across a cool web page that you simply could delight in. Take a search for those who want.

Reply

Here is a good Blog You may Obtain Interesting that we encourage you to visit.

Reply

Wonderful story, reckoned we could combine a few unrelated data, nevertheless really worth taking a search, whoa did one study about Mid East has got far more problerms too.

Reply

Always a major fan of linking to bloggers that I appreciate but don?t get lots of link adore from.

Reply

Although internet websites we backlink to below are considerably not associated to ours, we feel they’re truly really worth a go through, so possess a look.

Reply

We came across a cool site that you just may possibly love. Take a appear when you want.

Reply

Every the moment in a though we pick out blogs that we read. Listed beneath are the most recent web-sites that we opt for.

Reply

This is a topic close to my heart cheers, where are your contact details though?

Reply

Just beneath, are various entirely not associated sites to ours, nevertheless, they are surely really worth going over.

Reply

WONDERFUL Post.thanks for share..extra wait .. …

Reply

The time to read or take a look at the content material or sites we have linked to beneath.

Reply

Every when in a even though we opt for blogs that we read. Listed beneath would be the most recent internet sites that we decide on.

Reply

Sites of interest we’ve a link to.

Reply

We prefer to honor a lot of other online sites on the internet, even when they aren?t linked to us, by linking to them. Underneath are some webpages worth checking out.

Reply

Here are several of the web sites we recommend for our visitors.

Reply

The facts talked about inside the article are some of the best readily available.

Reply

Always a major fan of linking to bloggers that I like but don?t get lots of link really like from.

Reply

We prefer to honor lots of other world-wide-web internet sites around the net, even when they aren?t linked to us, by linking to them. Beneath are some webpages really worth checking out.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>