Hi guys,
so obviously there are a lot of documentation and community posts about Jira staging environments and also PostgreSQL databases.
However I find it really confusing, as every documentation says something different about how to replicate the database on a different windows server.
Now I do know that I have to use the pg_dump + psql options. However I do not understand how permissions and privileges are influenced by that. What do I need to keep in mind when replicating the database by using pg_dump and psql so I do not get any errors regarding duplicate keys or roles (or other errors)?
I really hope you guys can help me here.
My best
Merve
When you duplicate your database, you should have a totally separate database in this case hence permission on this database must be manually added by you.
Here is how I will do it.
These steps should get your Jira working just fine.
Remember if on the same server, point Jira to a different database and home directory
Hope this helps
many thanks for the quick response. The new database will be on a new server (along with the new Jira environment). I will follow your instructions and see if I will be able to manage it without errors. Thanks for that.
Two more questions if that is okay! I guess these are trivial things but as a newbie in Postgres I want to make sure.
Does these questions make sense? Hope they do :)
Thanks again. Have a nice weekend.
My best.
Merve
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I normally use the following command for dump and restore but mostly on linux.
pg_dump -U <user_name> <database_name> > postgres-<product_name>-$(date +
"%Y%m%d"
).dump
I do not think the username is important because you just need a user who has access to the database you are restoring to but in most cases where you have the different users, I used the same username but a different password. (Also, this depends on what permission the user has on the database you are restoring to)
The restore is as follows:
psql -U <user_name> <database_name> < <generated_backup>
.dump
I hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.