I generally destroy machines if I run out of space or don’t need them. It’s trivial to make a DB backup with WP-CLI, and if you’re using Trellis right that’s the only part of a VM you stand to lose when you destroy it.
Aware i’m digging up an old thread here, but just wondered if there are any other thoughts on this? I’m running out of disk space mainly due to the amount of VM’s I have so I need to find a solution for this.
Destroying machines isn’t ideal because I regularly update the sites, and start locally so don’t want to have to build them all again that frequently. I guess I could stop maintaining local versions, and just update staging and production - and only re-build local when I’m actually developing on them. Is that what other people do?
Is there anyway to reduce the HDD space the VM’s take up? They’re all around 4GB, do they need to be that big?