There is a remote virtual server. When I rented it, I installed Ubuntu Server x32 there. Now it was necessary to change the system to 64-bit.
Question: How to properly reinstall the OS, along with all currently installed packages, and not to lose the data stored on the server?