Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

How to commit WordPress database to Github or Bitbucket? #648

Closed
jdfweb opened this issue Dec 21, 2015 · 2 comments
Closed

How to commit WordPress database to Github or Bitbucket? #648

jdfweb opened this issue Dec 21, 2015 · 2 comments

Comments

@jdfweb
Copy link

jdfweb commented Dec 21, 2015

So I use Bitbucket for version control, but I've always use it for static websites! I know that when you commit WP websites to Github or Bitbucket, you usually just commit and keep track of your theme folder.

Issue is, if I'm on a different machine, the actual database filled with data doesn't live in the themes folder - it lives somewhere else! Therefore, if I were to pull my site onto another computer, it's almost useless because there's no database attached!

What's the most common and modern way of committing a WP site fully to Github or Bitbucket, that includes the database?

Any help would be appreciated!

@swthate
Copy link

swthate commented Dec 22, 2015

I've never thought to attempt to include the database in git. I'm not sure
if it's possible. But if anyone else had an idea that'd be awesome. I
usually use a plugin called All In One WP Migration to migrate my local db
to staging and production servers.
On Mon, Dec 21, 2015 at 5:13 PM jdfweb [email protected] wrote:

So I use Bitbucket for version control, but I've always use it for static
websites! I know that when you commit WP websites to Github or Bitbucket,
you usually just commit and keep track of your theme folder.

Issue is, if I'm on a different machine, the actual database filled with
data doesn't live in the themes folder - it lives somewhere else!
Therefore, if I were to pull my site onto another computer, it's almost
useless because there's no database attached!

What's the most common and modern way of committing a WP site fully to
Github or Bitbucket, that includes the database?

Any help would be appreciated!


Reply to this email directly or view it on GitHub
#648.

@jdfweb
Copy link
Author

jdfweb commented Dec 22, 2015

@swthate I do the same thing! Except I use a plugin called Duplicator (same deal!).

I have no issue keeping track of my project in Bitbucket - and then when I'm done, simply backing everything up with Duplicator and deploying to stage / production - but it's just a pain that anytime I want to work remotely (and locally) on another machine, I need to back up the WordPress database separately!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants