Hello,

I sent a message earlier today that I have not seen post.  I am going to
duplicate some info in here so I apolgize.

Here is my setup.

I have compiled amanda with the gzip wrapper necessary for gpg with the
instructions from http://security.uchicago.edu/tools/gpg-amanda.

My config is like so:

 GZIP=/var/backups/bin/gzip ./configure --with-user=backup
--with-group=backup --without-force-uid --with-fqdn --with-amandahosts

Amanda compiled perfectly.  I ran the make install, and all good.

I setup my dumptype like so:

define dumptype sw-test {
    comment "sw test"
    priority medium
}

My disklist:

localhost sda1 sw-test

At this point I attempted to run a backup.  It failed with an error about
gpg not being found.  How is that possible?  I am not using GNUTAR as my
program nor am I using a compress option in my dumptype.  How is this
possible.

Next I created my gpg key.  That went fine.  I then attempted a backup
again.  This wrote to tape correctly.  At this point I attempted to do an
amrestore and it would not work whatever I tried.  So I then decided to
add GNUTAR to my dumptype.  My new dumptype:

define dumptype sw-test {
    program "GNUTAR"
    comment "sw test"
    priority medium
}

I ran my backup and received an error about /etc/amandates and
/usr/local/var/amanda/gnutar-lists/.  Where are these coming from? Why are
they necessary when neither of these stings are in any of the amanda
config files?

I touch the first, and created the dir for the second and ran my backup
again.  All appeared to be ok, the email follows:

FAILED AND STRANGE DUMP DETAILS:

/-- localhost  sda1 lev 0 STRANGE
sendbackup: start [localhost:sda1 level 0]
sendbackup: info BACKUP=/bin/tar
sendbackup: info RECOVER_CMD=/var/backups/bin/gzip -dc |/bin/tar -f... -
sendbackup: info COMPRESS_SUFFIX=.gz
sendbackup: info end
? + gzip_prog=/bin/gzip
? + gzip_flags=--fast
? + gpg_prog=/usr/bin/gpg
? + gpg_as=backup
? + gpg_ringdir=/var/backups/.gnupg
? + dump_to_stdout
? + /usr/bin/gpg -e --homedir=/var/backups/.gnupg -r backup
? + /bin/gzip --fast
| Total bytes written: 2416640 (2.3MB, 1.0MB/s)
sendbackup: size 2360
sendbackup: end
\--------



OK so now I attempt a restore:

backup@argon:~/bin$ amrestore /dev/nst1 localhost localhost.sda1.20011016
amrestore:   0: skipping start of tape: date 20011016 label TechOps00
amrestore:   1: skipping localhost.sda1.20011016.0
amrestore:   2: reached end of tape: date 20011016
backup@argon:~/bin$

Why does it skip my data?  Why did it not ask my for my passphrase when I
wanted to restore?

In conclusion what I need to know is:

1) Why did amanda attempt to use gzip when I did not use anything in the
dumptype to tell it to?

2) Where did /etc/amandates and /usr/local/var/amanda/gnutar-lists/ come
from?

3) What do I need to do to accomplish a write and restore using
GNUTAR, gpg, and gzip.

THANKYOU for any and all assistance!!!!!!!

Andrew Hall


Reply via email to