Metadrop / scripthor

Swiss knife of scripts for speed up the development on drupal projects.
1 stars 10 forks source link

Do not drop database until database file will be available #1

Closed Eduardo-Morales-Alberti closed 1 year ago

Eduardo-Morales-Alberti commented 4 years ago

This script remove the database before check that the environment is available, so if you do not have access for any reason your local database dissapear.

Consider to check that the environment or the file is available before drop the local database.

rsanzante commented 4 years ago

I think it would be better to make a backup prior to trying to load a database. The local dump is corrupted or you lost connection after checking access to the remote environment you may end not the same situation: no local database loaded and no valid local database dump. However, if a flag triggers a backup before dumping the local database you can always reload that backup.

Eduardo-Morales-Alberti commented 1 year ago

The benefit is not worth it, the dump and the reloading database will be slower than retrying the process again.