I am using openhabian and I am new to amanda. When using the amreport tool, I noticed an error. Here is how I fixed it. As you can see I logged in as root, but amreport needs to be run as user ‘backup’. So a simple ‘su backup’ was used. Unfortunately still in the root’s home directory:
[09:46:11] root@smarthome:~# pwd
/root
[09:46:12] root@smarthome:~# su backup
[09:46:15] backup@smarthome:/root$ amreport openhab-dir
Can't locate Tie/StdHash.pm: ./Tie/StdHash.pm: Permission denied at /usr/share/perl/5.22/base.pm line 97.
...propagated at /usr/share/perl/5.22/base.pm line 106.
BEGIN failed--compilation aborted at /usr/lib/amanda/perl/Amanda/Config/FoldingHash.pm line 3.
Compilation failed in require at /usr/lib/amanda/perl/Amanda/Config.pm line 753.
BEGIN failed--compilation aborted at /usr/lib/amanda/perl/Amanda/Config.pm line 753.
Compilation failed in require at /usr/sbin/amreport line 31.
BEGIN failed--compilation aborted at /usr/sbin/amreport line 31.
The fix is easy, change to a user writable directory, like /tmp
[09:46:20] backup@smarthome:/root$ cd /tmp/
[09:46:23] backup@smarthome:/tmp$ amreport openhab-dir
Hostname: smarthome
Org : openHABian openhab-dir
Config : openhab-dir
Date : April 4, 2018
These dumps were to tape openHABian-openhab-dir-003.
The next 10 tapes Amanda expects to use are: 10 new tapes.
STATISTICS:
...