Report this

What is the reason for this report?

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

Posted on January 30, 2020

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.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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!

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.