New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Fleet Admiral Fleet Admiral
Fleet Admiral
175 views

Embedded PostgreSQL backup fails

Jump to solution

I backed up the posgreSQL database with 

/opt/HP/BSM/bin/opr-pgctl.sh -backup /var/backupdb --force -z

 

This created the /var/backupdb file successfully, then I decided to remove /var/backupdb ( a mistake, I guess)  and run the script without -z option, but it fails now.

 

The file opr-pgctl.log shows the error:

 

ERROR PostgresBackup.execute(94) - Backup command failed! Error was: pg_dumpall: could not open the output file "/var/backupdb": Permission denied

 

I have tried specifying a different filename, but the same error occurs.  Any idea how I fix this?

Labels (1)
0 Likes
1 Solution

Accepted Solutions
Highlighted
Fleet Admiral Fleet Admiral
Fleet Admiral

Hello,

 

have you tried to use the /tmp folder as target instead of /var?

 

/opt/HP/BSM/bin/opr-pgctl.sh -backup /tmp/backupdb --force -z

 

Kind regards,

Harald

View solution in original post

0 Likes
2 Replies
Highlighted
Fleet Admiral Fleet Admiral
Fleet Admiral

Hello,

 

have you tried to use the /tmp folder as target instead of /var?

 

/opt/HP/BSM/bin/opr-pgctl.sh -backup /tmp/backupdb --force -z

 

Kind regards,

Harald

View solution in original post

0 Likes
Highlighted
Fleet Admiral Fleet Admiral
Fleet Admiral

Yes, I used /tmp and the backup was successfull.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.