Can I start amanda backup manually?

Hello,

I have installed amanda backup and will save the backup-files on a usb-stick, but it do not work.
So, it is possible to start an amanda backup session manuell, so I can see, if backup file are stored on the usb-stick?

Thank you!

Yes. Manually switch to user backup and call amdump (or amreport if you want a report on latest backup run).
You can also do that in one go using sudo:

[11:23:03] openhabian@openhabianpi:~$ sudo -u backup /usr/sbin/amreport openhab-dir
Hostname: openhabianpi
Org     : openHABian openhab-dir
Config  : openhab-dir
Date    : Februar 10, 2019
[...]

By default in openHABian, Amanda backups run every night at 1 a.m.

The output from this command is …

[14:58:01] openhabian@openHABianPi:~$ sudo -u backup /usr/sbin/amreport openhab-dir
Hostname: openHABianPi
Org     : openHABian openhab-dir
Config  : openhab-dir
Date    : Februar 10, 2019

*** A TAPE ERROR OCCURRED: [Can't make directory '/media/usbstick/slots/drive0': Permission denied].
No dumps are left in the holding disk.

The next 10 tapes Amanda expects to use are: 10 new tapes.

I have look the rights from /media/usbstick/slots:

drwxr-xr-x 17 openhabian openhabian 32768 Feb 9 22:15 slots

So, why can the user openhabian not create the folder/file drive0??

Because amdump runs as user backup not as openhabian so you created your storage directory with the wrong ownership/permissions.

I have now changed the folder permission to backup:backup, but now an other error occured

> NOTES:
>   planner: Adding new disk openHABianPi:/etc/openhab2.
>   planner: Adding new disk openHABianPi:/var/lib/openhab2.
>   planner: WARNING: no history available for openHABianPi:/var/lib/openhab2; guessing that size will be 136192 KB
>   planner: WARNING: no history available for openHABianPi:/etc/openhab2; guessing that size will be 136192 KB
>   driver: Taper error: "No acceptable volumes found"
>   taper: Slot 1 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 2 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 3 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 4 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 5 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 6 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 7 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 8 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 9 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 10 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 11 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 12 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 13 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 14 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
>   taper: Slot 15 is a device in error: Error checking directory /media/usbstick/slots/drive0/data/: No such file or directory, autolabel disabled
> 
> 
> DUMP SUMMARY:
>                                                          DUMPER STATS   TAPER STATS
> HOSTNAME     DISK              L ORIG-kB  OUT-kB  COMP%  MMM:SS   KB/s MMM:SS   KB/s
> -------------------------------- ---------------------- -------------- -------------
> openHABianPi /etc/openhab2                                  FAILED
> openHABianPi /var/lib/openhab2                              FAILED

I don’t know that error, but you would have required to have the proper permissions set at Amanda install time. You didn’t so hard to tell what’s going on.
I’d recommend you delete your storage directory, recreate it with proper permissions and reinstall Amanda from the openHABian menu.