Page 1 of 1

WAPT migration from Windows to Linux + console action tracking

Published: November 30, 2017 - 4:10 PM
by fludo67
Hello,

I'd like to know if it's possible to migrate a WAPT server currently running on Windows to a WAPT server running on Linux?
If so, is there a documented procedure? (Is simply copying the WAPT directory structure and database sufficient?)

Another question: is it possible to track actions performed from the console? (Package installations on a machine, repository updates, importing new packages, etc.). In short, a kind of basic history, presented in a more readable format than having to search through the server logs directly.

This would be a really useful feature for shared use of the WAPT console.

Regards

Re: WAPT migration from Windows to Linux + console action tracking

Published: November 30, 2017 - 5:07 PM
by dcardon
It's best to open a separate thread for each topic. I'll answer the first part of the question; you can open another thread for the rest.

The migration is relatively simple. It's preferable to use the same version on the Linux side (e.g., two versions 1.3.13), then copy the directories as Simon explained in his email: https://lists.tranquil.it/pipermail/wap ... 02351.html

- Installing a new 64-bit Linux Wapt server with any IP address. Use the standard procedure in the documentation. https://www.wapt.fr/fr/doc/Installation ... index.html

- Transferring WAPT files from the Windows server to the Linux server (using WinSCP, for example)
- Copying the contents of C:\wapt\waptserver\repository\wapt to /var/www/wapt/ on Linux
- Copying the contents of C:\wapt\waptserver\repository\wapt-host\* to /var/www/wapt-host/ on Linux
`chown -R
wapt:www-data /var/www/wapt/
` `chown -R wapt:www-
data /var/www/wapt-host/`

Once all the data has been copied, you can shut down your old Windows WAPT server and switch Use the IP address of your Linux server to enter the IP address of the Windows WAPT server.

In addition to the steps mentioned in the email, you can also retrieve the MongoDB database and place it in the correct directory, then perform the necessary chown/chmod commands. Otherwise, the inventory will be empty initially, but in any case, the workstations will be populated gradually.

Sincerely,

Denis Cardon

Re: WAPT migration from Windows to Linux + console action tracking

Published: Dec 1, 2017 - 1:37 PM
by fludo67
Hello,

thank you for this valuable information. I've also opened another thread regarding task tracking in the console.

Regards