How to make a full backup of OpenVAS configuration?

Hello guys,

I explain my problem. To start my goal is to make a total copy of my OpenVAS configuration to save all important data to be able to put this backup on a new installation of blank OpenVAS.

So I want to recover:

  • Admin account of the web interface.

  • All tasks, users, parameters filled in.

  • OpenVAS Logs

  • Database

For that I inquired and I saw that it is necessary to recover the following files:

  • /var/lib/postgresql/17/main/base/16385 (this is my postgres database)

  • /etc/openvas

  • /var/lib/redis/dump.rdb

  • /var/lib/openvas

  • /var/lib/gvm

  • /etc/openvas/gnupg

Finally I must specify that I checked and each of the files is the same size, is exported to the same place where it was compressed and it has the same permissions for the same user.

(I do the transfer via scp)

Thanks in advance for your help !

The best way is using a Greenbone Appliance, that comes with a backup function.

Please note some database fields are encrypted you need to export your GPG keys as well and import them in the new installation.

1 Like

Ok thx for the info !