migrate only client to new OPSI
migrate only client to new OPSI
I wanted to upgrade opsi from version 4.1 to 4.2 but I encountered several problems.
So I decided to create a new server and therefore to review all my packages. My backend is in mysql and I want to import only the clients and not the packages because I want to update them.
Do you know a method to import only the hosts without the packages?
Best regards.
Re: migrate only client to new OPSI
maybe you could take a opsi-backup and restore the backup on the new server with --new-server-id <fqdn>.
Then you can delete the products you dont want.
After that execute a opsi-setup --cleanup-backend.
Make sure that your 4.1 server packages, client agent and current DB is up to date (opsi-setup --update-mysql)
Regards
Fabian
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
Re: migrate only client to new OPSI
Thank you for your feedback. This is indeed the solution I had also found.
But, I wanted to find a solution that avoided me to uninstall the packages to reinstall them in a new version.
In this case, I will try to update the current server again and I will modify my packages as I go along.
Regards
Re: migrate only client to new OPSI
Code: Alles auswählen
opsi-admin -d method host_getObjects '' '{"type":"OpsiClient"}' > hostobjects.json
Code: Alles auswählen
opsi-admin -d method host_createObjects < hostobjects.json
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de