VVV disable backups

Update VVV 3.0

As of the release of VVV 3.0 this can all be done by adding the following in the vvv-custom.yml

general:
  # Backup the databases to the database/backups subfolder on halt/suspend/destroy, set to false to disable
  db_backup: false
  # Import the databases if they're missing from backups
  db_restore: false

list of vvv custom action filesVVV is great but if you have 20+ sites in it most of which are quite big doing a reload or halt can be quite slow.
Disabling it isn’t the easiest. In vagrant-root/config/homebin/ create these 3 files:

  • vagrant_destroy_custom
  • vagrant_halt_custom
  • vagrant_suspend_custom

I wish there was a way to easily disable these. The vvv-custom.yml would be great for this.
Also adding a way to exclude specific databases.

source

VVV provision single site

For the last month and a half I’ve started using vvv, and it works like a charm.
As I’m setting up a lot of sites I have to run provision a lot.
And that is quite a heavy operation in vvv because it pretty much checks every thing.

Luckily there is also a way to provision a single site.

vagrant provision --provision-with=site-example

Where site-example is the same as the site key in vvv-custom.yml.