Discussion:
Migrate Database to other server
Rene Behring
2014-07-31 05:55:04 UTC
Permalink
Hey,

i want to switch to an other server with all the configurations, users, scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other server? Or what else do i have to do?

Thanks,
Rene
Helmut Koers
2014-07-31 06:17:14 UTC
Permalink
For OpenVAS 6, this is what I found out, where information is stored:

/var/lib/openvas/mgr/tasks.db:
Tasks
Reports
Notes
Overrides
Targets
Port lists
Credentials
Scan configs
Alerts
Filters
Schedules
Slaves
Trashcan
My settings

directory structure:
Users /var/lib/openvas/users/
NVT Feeds /var/lib/openvas/plugins/
SCAP Feeds /var/lib/openvas/scap-data/
Cert Feeds /var/lib/openvas/cert-data/
Scanner Settings /etc/openvas/openvassd.conf

There are more directories under "/var/lib/openvas/", but I don't think
you need all of them for a migration. In OpenVAS 7 afaik, some data has
been migrated into the DB.

31.07.2014----07:55:04"Openvas-discuss"
From: Rene Behring <
***@gmail.com>> To: Openvas Mailingliste Englisch
<openvas-discuss
@wald.intevation.org>, >
Date: 31.07.2014 07:55> Subject: [Openvas-discuss] Migrate D
atabase to other server> Sent by: "Openvas-discuss" <openvas-discuss-bounc
Hey,
i want to switch to an other server with all the configurations,
users, scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other
server? Or what else do i have to do?
Thanks,
Rene
_______________________________________________
Openvas-discuss mailing list
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Matthew Mundell
2014-07-31 08:11:29 UTC
Permalink
Post by Rene Behring
i want to switch to an other server with all the configurations, users, scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other server? Or what else do i have to do?
If you uploaded report formats then also copy

var/lib/openvas/openvasmd/report_formats/
etc/openvas/openvasmd/global_report_formats/

--
Greenbone Networks GmbH
Neuer Graben 17, 49074 Osnabrueck, Germany | AG Osnabrueck, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner
Reindl Harald
2014-07-31 08:22:02 UTC
Permalink
Post by Rene Behring
i want to switch to an other server with all the configurations, users, scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other server? Or what else do i have to do?
as for any other service not just single files
rsync -tPrlpogEAX /var/lib/openvas/ ***@new-host:/var/lib/openvas/

the same applies for samba, mysql, vnstat, smokeping......
suwaji harsono
2014-07-31 09:15:30 UTC
Permalink
Dear All,

Maybe we can try use glusterfs with define first partition disk with lvm I
think is better. Hope this can solve issue..

Thanks

Harsono
Mobile: 085746101130
Skype : harsono.suwaji
Post by Rene Behring
Hey,
i want to switch to an other server with all the configurations, users,
scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other
server? Or what else do i have to do?
Thanks,
Rene
_______________________________________________
Openvas-discuss mailing list
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
Jack Harvey
2014-07-31 11:34:36 UTC
Permalink
I needed to do the same thing and when I asked a very helpful reply indicated that I should put the entire contents of /var/lib/openvas/ on the new computer. When completed, It was a duplicate of the old from an OpenVAS perspective.


Jack Harvey RHCE CISSP
Synnex Corporation
864-349-4939

-----Original Message-----
From: Openvas-discuss [mailto:openvas-discuss-***@wald.intevation.org] On Behalf Of Rene Behring
Sent: Thursday, July 31, 2014 1:55 AM
To: Openvas Mailingliste Englisch
Subject: [Openvas-discuss] Migrate Database to other server

Hey,

i want to switch to an other server with all the configurations, users, scans, reports and so on...
Is it enough to just copy var/lib/openvas/mgr/tasks.db to the other server? Or what else do i have to do?

Thanks,
Rene

Loading...