automate confluence database backups on windows

Hi,

We need to automate our backups of the Postgres Database for our confluence installation.

We can already perform a manual backup but we are prompted for the database password each time.

The script content used is below

SET PGPASSFILE=D:\PostgresqlBack\bin\pgpass.conf
"C:\Program Files\PostgreSQL\9.1\bin\pg_dumpall.exe" -U postgres > D:\PostgresqlBack\postgres_db.out

Can you advise how I might achieve this please?

 

1 answer

0 vote

Hi Chris,

I've investigated a bit and it seems that you would need to create a file in your environment of .pgpass type where the pg_dump will run as.

More information can be found in this link:

http://stackoverflow.com/questions/2893954/how-to-pass-in-password-to-pg-dump

Cheers,

Rodrigo

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Confluence

Three common content challenges + how to manage them

An efficient enterprise content management system, or ECM, is a must-have for companies that create work online (cough   cough, all companies). If content calendars, marketing plans, and bu...

37 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you