I've confirmed this is only happening on FreeBSD. Has anyone gotten encrypted
backups with amanda-2.5.1 and the instructions at
<http://www.amanda.org/docs/howto-gpg.html> to work?
Each time it's the same error, Password must be 20 characters long ... etc.
Maybe someone can explain the chain of how amanda actually launches the
encrypted portion of the backup, I can't quite follow it.
As always, any help would be appreciated.
Oscar
Oscar Ricardo Silva wrote:
I hadn't thought to do that and I would like to have said that fixed it
... unfortunately, no, that didn't fix it. Same error message:
sendbackup: debug 1 pid 40151 ruid 1016 euid 1016: start at Mon Feb 19
17:19:43 2007
sendbackup: version 2.5.1p3
Reading conf file "/usr/local/amanda25/etc/amanda/amanda-client.conf".
Reading conf file
"/usr/local/amanda25/etc/amanda/daily/amanda-client.conf".
sendbackup: debug 1 pid 40151 ruid 1016 euid 1016: rename at Mon Feb 19
17:19:43 2007
sendbackup req: <GNUTAR /var/ 0 1970:1:1:0:0:0 OPTIONS
|;auth=ssh;index;>
parsed request as: program `GNUTAR'
disk `/var/'
device `/var/'
level 0
since 1970:1:1:0:0:0
options `|;auth=ssh;index;'
sendbackup: start: netdb.gw.utexas.edu:/var/ lev 0
sendbackup-gnutar: time 0.010: doing level 0 dump as listed-incremental
to '/usr/local/amanda25/gnutar-lists/backup.client.utexas.edu_var__0.new'
sendbackup-gnutar: time 0.026: doing level 0 dump from date: 1970-01-01
0:00:00 GMT
sendbackup: time 0.030: spawning /usr/local/amanda25/libexec/runtar in
pipeline
sendbackup: argument list: runtar daily gtar --create --file -
--directory /var --one-file-system --listed-incremental
/usr/local/amanda25/gnutar-lists/backup.client.utexas.edu_var__0.new
--sparse --ignore-failed-read --totals .
sendbackup-gnutar: time 0.031: /usr/local/amanda25/libexec/runtar: pid
40154
sendbackup: time 0.031: started backup
sendbackup: time 0.048: started index creator: "/usr/local/bin/amgtar
-tf - 2>/dev/null | sed -e 's/^\.//'"
sendbackup: time 1.363: 118: strange(?): Error: Password must be at
least 20 characters.
So far I've tried it on two versions of FreeBSD (4.8, 4.11) and the
problem persists. Looks like aespipe is not really getting the
passphrase that's stored in /home/amanda/.am_passphrase ... Hmmmm ...
[EMAIL PROTECTED] wrote:
Can you make the content of .am_passphrase to be 20 chars long?
It's a requirement by aespipe on some platform, I guess.
Oscar Ricardo Silva <[EMAIL PROTECTED]> said:
I'm pretty sure this isn't necessarily a problem with amanda but more
of one
with the utilities used to encrypt the backups. I'm using amanda
2.5.1p3 and
attempting to encrypt the transmission and storage of backups. I've
done this
on a few machines, and this one is running FreeBSD 4.11 along with
the following
utilities:
aespipe 2.3c
gnupg 1.4.2
tar 1.13.25
amgtar - script
bz2aespipe - script
amaespipe - script
Whenever I try to run the backup on this machine I see an error in
sendbackup.xxxxx:
sendbackup: debug 1 pid 53407 ruid 1002 euid 1002: start at Mon Feb
19 11:28:33
2007
sendbackup: version 2.5.1p3
Reading conf file "/usr/local/amanda25/etc/amanda/amanda-client.conf".
Reading conf file
"/usr/local/amanda25/etc/amanda/daily/amanda-client.conf".
sendbackup: debug 1 pid 53407 ruid 1002 euid 1002: rename at Mon Feb
19 11:28:33
2007
sendbackup req: <GNUTAR /var 0 1970:1:1:0:0:0 OPTIONS
|;auth=ssh;index;>
parsed request as: program `GNUTAR'
disk `/var'
device `/var'
level 0
since 1970:1:1:0:0:0
options `|;auth=ssh;index;'
sendbackup: start: backup.client.utexas.edu:/var lev 0
sendbackup-gnutar: time 0.052: doing level 0 dump as
listed-incremental to
'/usr/local/amanda25/gnutar-lists/backup.client.utexas.edu_var_0.new'
sendbackup-gnutar: time 0.053: doing level 0 dump from date:
1970-01-01 0:00:00
GMT
sendbackup: time 0.054: spawning /usr/local/amanda25/libexec/runtar
in pipeline
sendbackup: argument list: runtar daily gtar --create --file -
--directory /var
--one-file-system --listed-incremental
/usr/local/amanda25/gnutar-lists/backup.client.utexas.edu_var_0.new
--sparse
--ignore-failed-read --totals .
sendbackup-gnutar: time 0.055: /usr/local/amanda25/libexec/runtar:
pid 53410
sendbackup: time 0.055: started backup
sendbackup: time 0.130: started index creator: "/usr/local/bin/amgtar
-tf -
2>/dev/null | sed -e 's/^\.//'"
sendbackup: time 1.583: 118: strange(?): Error: Password must be at
least 20
characters.
and sendsize exits without error.
I haven't seen this "Password must be ..." error on any of the other
systems
where I'm using this setup. In the amanda users home directory I've
created:
.am_passphrase
.gnupg/am_key.gpg
both with permissions of 0600 and the contents of amanda-client.conf
are:
auth "ssh"
ssh_keys "/.ssh/id_rsa_amrecover"
Any information would be extremely appreciated.
Oscar