Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-10899: Unexpected Error Appears During Backup of Infrastructure Database: Could not open output file.

Privileged Access Service ,  

22 August,18 at 09:51 PM

Problem:
  
Running the powershell script to perform a backup of the customer managed Infrastructure Service database, gives the error seen below:
 
PS > .\pg_backup.ps1 -DestDir c:\Aug21Backup -Verbose
& 'C:\Program Files\Centrify\Centrify Identity Platform\pgsql\bin\pg_dump.exe' -U 'cisdbuser' -w -v -F c -f 'c:\Aug21Backup\global.dump' global
pg_dump: [custom archiver] could not open output file "c:\Aug21Backup\global.dump": No such file or directory
Unexpected error, aborting backup
C:\Program Files\Centrify\Centrify Identity Platform\scripts\pg_backup.ps1 : Unexpected error during database host
setup: Unable to dump database, code: 1


User-added image

 
Cause:
  
The destination directory specified on the command line is not preexisting.


Resolution:
  
Create the backup destination folder before running the backup script, then rerun the script.
 
User-added image

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.