On Monday 30 May 2005 00:30, Gentian Hila wrote: >On 5/29/05, Gene Heskett <[EMAIL PROTECTED]> wrote: >> On Sunday 29 May 2005 14:50, Gentian Hila wrote: >> >It it my first time trying to use AMANDA for backup. I went ahead >> > and read the chapter on amanda from the book Backup and recovery >> > in Unix, but it seemed to me very complicated. >> > >> >I have a RedHat ES 3 system and I am using an external usb HDD to >> >backup the whole system. I want to do a full backup once a week >> > and incremental backups every other day of the week. >> > >> >I installed rpm amanda 2.4 ( Might look for 2.5 if it is as an >> > rpm outthere yet). >> > >> >I am looking for some short manual (not too complicated and with >> > all of the options) on how to configure amanda to do backups on >> > Hard drive .
Thats what Stefan is proposeing, a breakage of the amanda.8 manpage into individual pages so the coverage of the individual options in ones amanda.conf file can be discussed, along with interactions. Thats got to be a plus IMO. >> > >> >Does somebody know something like that ? Thanks a lot for the >> > help >> >> I can probably help except it will be for a tarball built 2.4.5, >> and I've no idea how to make a usb hard drive work, mine are all >> on std ata133 controllers. I'm using a 200GB for this, and have >> been for several months. >> >> Generally speaking, the rpm versions of amanda are often built >> with some option set wrong, and you'll find that this whole group >> pretty much endorses buiding it from tarballs as that lets you set >> things according to std practice. My first, and last attempt to >> use the rpms was a disaster, but that was also 5+ years ago. [...] > >Well, I thought maybe rpm would be easier, but I do not mind >installing it from a tarball. Whatever works better. Also what I >wanted to point out is that I want to backup on hard drive not in >tape. I have already mounted the hard drives. Ok, there is a link to snapshots on the main amanda.org page, which should take you to a directory listing showing all 3 current branches of the code. What is 2.4.5 today isn't bleeding edge, just modern. Fist, add a user to your system called amanda, and then make this user amanda a member of a group that pretty much has the run of the system, like 'disk' or 'backup'. I used 'disk' myself. When thats done, you'll have a /home/amanda directory. Download the last 2.4.5 snapshots tar.gz, and place it in the /home/amanda directory. As root, chown amanda:disk this tar.gz file. Become amanda with the 'su amanda' command. Now unpack it in your home directory using 'tar xzf filenametar.gz'. cd into the resultant directory. Read the README and INSTALL files first for some background but don't try to build it just yet. Copy this file I'm going to insert here, into that directory the tarball made when you ran the 'tar xzf filename.tar.gz', and edit it to suit your situation as far as where all the working files will be. As amanda's indices can take several hundred megs of disk space, choose a location with sufficient space. As /usr is usually the biggest filesystem by far, you'll see that my example is in /usr/local/etc, and although I've replaced drives over the years, I've not had to move it because it was out of space. Anyway, here is the file, which when run, checks to make sure you aren't root (thats bad, very bad) and then builds amanda according to the options in this file: ---------------- #!/bin/sh # since I'm always forgetting to su amanda... if [ `whoami` != 'amanda' ]; then echo echo "!!!!!!!!!!!! Warning !!!!!!!!!!!!" echo "Amanda needs to be configured and built by the user amanda," echo "but must be installed by user root." echo exit 1 fi make clean rm -f config.status config.cache ./configure --with-user=amanda \ --with-group=disk \ --with-owner=amanda \ --with-gnu-ld \ --prefix=/usr/local \ --with-tapedev="FILE:/amandatapes" \ --with-debugging=/tmp/amanda-dbg/ \ --with-tape-server=coyote \ --with-amandahosts \ --with-configdir=/usr/local/etc/amanda \ --with-config=Daily \ --with-gnutar=/usr/local/bin/tar make ----------------------- You'll want to change the --with-tapedev= to suit where you have that drive mounted. You'll also want to change the --with-tape-server= to the FQDN of your server box. What I'm using is a mistake, and it forces that alias to be looked up in my hosts file to get the address. One can also use the actual address there, but probably shouldn't because the machine might get replaced and get a new address, so doing the indirection via the use of a hostname is the preferred way. Do a 'which tar' to find your tar and fix the --with-gnutar= line. While you are at it, do a tar --version because there are some that don't work. The known good ones are tar-1.13-19 tar-1.13-25 tar-1.15 The --with-amandahosts tells it there is a seperate access control file for amanda. See the manpages for a description. It should live in /home/amanda/ as .amandahosts & its perms are: -rw------- 1 amanda disk 110 Jan 17 12:02 .amandahosts And it should look something like this: ------------ coyote.coyote.den amanda coyote amanda localhost.localdomain amanda coyote.coyote.den root ------------ I'm not sure if the localhost entry is kosher. The last entry allows root to run amrecover/amrestore. When I referred to FQDN above, the coyote.coyote.den is the FQDN of this machine on my local network, all in the 192.168 address block. The first string in each line s/b changed to your server boxes FQDN and its alias which I use. Make your version of that first file fit your system, and we'll continue from there in the next message. Copy it back to me for 'gotcha' checking when you reply. It might be several hours before I reply, I have a ton of yellow clay dirt to put a shovel under, I'm working on a retaining wall while the weather is cooperative. -- Cheers, Gene "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) 99.35% setiathome rank, not too shabby for a WV hillbilly Yahoo.com and AOL/TW attorneys please note, additions to the above message by Gene Heskett are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.
