Automate gvm and nvt data sync

Hi,

x-mas is comming and so we decided to share some knowledge, maybe it is helpful for others as well.

Syncing is a daily job and screams for automation. This gitlab ci pipeline example https://github.com/carlstegmann/snippets/blob/master/automate_gvm_sync/.gitlab-ci.yml might help in solving this task. In the snippets repo https://github.com/carlstegmann/snippets/tree/master/automate_gvm_sync you will find also an example of how to sync back from the s3 bucket onto your various local scan systems. The pretty cool thing is, you will use your locally synced data and this reduces the load put onto the community feed rsync server in case you are using more than one gvm system. This is how it will look inside your gitlab environment:


You could also use systemd to do the the rsync from greenbone, but than it is not that graphically visible :sunglasses:

Cheers,
Carl

1 Like