Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can the PostgreSQL database be regenerated from Git?

Mark Ruedy May 1, 2015

Thinking about a backup strategy, I wonder if the external database (specifically postgreSQL) can be regenerated from a git repository.

In a CVS setup where ViewVC uses a mysql database, the database can always be recreated or updated from the repository.  It can take a long time but can be done.  

If the database can be regenerated or updated from an old repository, then we could decouple the database from the git repository during backup and it would be more resilient.

Thanks

1 answer

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 3, 2015

There are things which are only stored in the DB, e.g. pull request data. So you cannot regenerate everything in the DB from the Git repo. (But you can always just push the Git repo again to a new repo on a restored Stash server.)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events