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
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.