Which docker image contains the tasks, scan targets, and other items you create in the vulnerability manager web interface? When updating feeds I notice I download a host of new images and lose all data I previously created. I am using the instructions in the workflow here: Workflows - Greenbone Community Documentation
I notice some images are left dangling after the update and in most instances that is fine as I assume they represent out of date vulnerability data.
A more direct question to ask is: where does openvas store my tasks, scan targets, target credentials, completed scan information etc. This is so I can back it up prior to a new feed update and not risk losing it
As additional information tasks, targets, etc. are stored in a postgres database. The data of the postgres database is stored with the psql_data_vol docker volume. If you don’t delete this volume your tasks, targets, users, … will be persistent.
Question: does the feed data get updated as well in the same database? If it does I think any backup would need to be finer grained than simply making a backup/copy of the whole db?
By deleting the container and re-pulling the docker images using this command - docker compose -f docker-compose.yml -p greenbone-community-edition pull
I can see me tasks again albeit the feeds are out of date apart from the NVT.
NOTE: I am running it from the contain directory hence no download var is specified in the command.
Using this command below will update the feeds but overwrites all my custom vulnerability manager data.
What do you mean exactly by “all data I previously created”? Do you mean .nasl files? I suspected you were talking about the tasks, targets, credentials, users, etc. pp.
I lose the scan tasks I created and the Scan targets I created. In fact the feed sync is somewhat counter-productive if it obliterates my scan tasks and scan targets.
Also the results of all completed scans are lost. So basically all the vulnerability manager custom data.
Losing the results of completed scans is an unworkable commercial situation