Anyone who is anyone uses git to manage their projects these days. Its a no-brainer when working in teams and even working alone its useful for version control and completing updates.
One problem I’ve faced over the years is getting WordPress database information into my workflow so that its safe in the event something goes bad.
Its not the most glamorous solution, but I have found a simple method is to:
- Download and install WP – Migrate.
- Export DB to folder where your git repo it running.
- Save as the same filename and overwrite each time you export.
- Push the change.
That’s it folks. This is a simple and not-so time consuming way to keep your database data safe.
If anyone has any better solutions please feel free to leave a comment below.