Es posible subir una actualización de la app al servidor, sin perder la BD actual?

Posted January 30, 2020 382 views

Tengo una app en un servidor Ubuntu, pero tenemos una actualización y se requiere subir y reemplazar la que ya esta, pero sin perder lo que se tiene en la base de datos.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hello, @masuiprojects

You can perform a database backup on the droplet in order to have a working copy of the database. You can do this using mysqldump :

mysqldump -u root -p DB1 > DB1.sql

Once you have the database sql backup file you can download it locally or to any other storage server.

In case of any data loss, you will have a copy of your database and you will restore it if needed so there shouldn’t be any issues.

Hope this helps!