cancel
Showing results for 
Search instead for 
Did you mean: 

Database revision backup in Git

Database revision backup in Git

Hello,

I need your help!!!

I already made a dump sql file and push it in git, now I need to take automatic backup of each revision and automatic update as a new branch in git. If it is possible then please help me.

 

Thanks in advance

4 REPLIES 4

Re: Database revision backup in Git

Hi @tahmina_akter,

 

Why are you pushing your database dump to Git?

What is the goal here?

Re: Database revision backup in Git

Well, I believe your primary goal is have backup, not to push database dumps into Git.

Git is not designed to store DB dumps. It is most effective when you store source code there.

 

And in case your goal is "backup to cloud" -- you can backup to Google drive with the help of command-line tools like rclone

Re: Database revision backup in Git

Well, my goal is to take a backup everyday and store in a secure place. We are working on a mega project and many developers are working at a time on same site, so each time any of developer doing something wrong we got stuck. That's I was thinking is there any way that I can take a backup after a certain time of period then our works will not loose.

 

Thanks 

Re: Database revision backup in Git

I think you can just add the last updated SQL file to repository 

As GitHub don't backup your database