1

Recently I've been familiar with version control (bithbucket), and I've uploaded all my projects on it. So I'm not concern about losing them anymore, even when my local hard drive dies. Because they are safe on bithbucket.

Ok, all fine. Now I'm looking for an approach to do the same thing for databases (both structure and data). Based on some searches, I figured out there is something named migrations which almost does what I want. But not really, I don't use any framework (like Laravel which supports migrations). Besides that, a migration contains only database's structure, not the whole data.

Anyway, is there any way to I also commit my databases on bitbucket? Or any approach similar?

3
  • 2
    Downvoter please leave a comment and explain what's wrong with my question?! Commented Jan 1, 2017 at 7:08
  • Look at the close reason Commented Jan 1, 2017 at 7:08
  • Well my question isn't off topic at all methinks Commented Jan 1, 2017 at 7:08

1 Answer 1

2

Git is well-suited for text data, not for database data (which contain 'blob', potentially binaries)

You could use git for the schema (as shown here), but for database objects, you need a dedicated tool (see this list), and a backup strategy which does not involve Git.

Sign up to request clarification or add additional context in comments.

2 Comments

@Shafizadeh see also softwareengineering.stackexchange.com/questions/241109/… for more on that topic.
Sorry, it happens when reviewers don't have much experience in questions about Git.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.