How to backup my database using psql shell on windows

Dear Support,

Please I need to make a backup of my dhis database on a windows PC using the psql shell. Please can someone help with the command and always where can I locate this file after the backup had been completed.

···

Sent from Windows Mail

Hi Gerald,

Open Command Prompt and use the following command.

pg_dump -U usename db_name > PathToFile\FileName.sql

I hope it helps,

Seid,

···

On Wed, Jan 22, 2014 at 2:44 AM, Gerald Thomas gerald.81@hotmail.com wrote:

Dear Support,

Please I need to make a backup of my dhis database on a windows PC using the psql shell. Please can someone help with the command and always where can I locate this file after the backup had been completed.

Sent from Windows Mail


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp