Chassis / db_backup

Backup and restore your database automatically
6 stars 4 forks source link

Add Option to not wipe database on `provision` #12

Closed mikeselander closed 4 years ago

mikeselander commented 6 years ago

The db-backup Chassis extension appears to overwrite your database if you have a backup file in the directory, even if you don't want it to upon vagrant provision. This is a problem if you're only provisioning to add or update an extension, and not after having destroyed your box.

There should be a flag or prompt asking if you would like to delete your database when upping or provisioning.

  1. What operating system do you use? Mac OS X

  2. What version of Vagrant are you running? 2.1.1

  3. Are you using VirtualBox or VMWare and which version are you using? Virtualbox 5.2.16

kadamwhite commented 4 years ago

@mikeselander I ran into this, should be fixed now as of #23 — the issue was that we were importing the DB if there was no table ${prefix}_posts, but that would yield e.g. wp__posts instead of wp_posts (since prefix includes the _) and that table would of course never exist.

Provisionally closing this.