← Back to team overview

dhis2-users team mailing list archive

Re: Backup Script Error


When i tried to run the dhis2-backup from instance user itself "dhis"

i am getting this error:

/usr/bin/dhis2-backup: line 32:
Permission denied
Mon Jul  3 09:26:59 UTC 2017 [!!ERROR!!] Failed to produce plain
backup of database dhis

On 7/3/17, gerald thomas <gerald17006@xxxxxxxxx> wrote:
> Dear All,
> I noticed that whenever i enter "dhis2-backup" on the terminal it does
> not ask me for the instance name.
> Because i create a user whose responsibility is to run automated
> backups but it is now since every time it executes the backup command,
> the system response with an error shown below:
> testuser@dhis:~$ dhis2-backup dhis
> pg_dump: [archiver (db)] connection to database "testuser" failed:
> FATAL:  database "testuser" does not exist
> --
> Regards,
> Gerald



Follow ups