Skip to content

gl051/backup-postgresql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

backup-postgresql

A DOS script to run a backup of a PostgreSQL database.

This batch file can be a reference for writing your own backup script. You will have to adapt it depending on your needs, for example choosing to use compressed file, more efficient, or plain text file, for a wider options of database to use when restoring the data.

The code uses the pg_dump command which is part of the pgAminIII installation, you will have to tell pgAdmin to remember your password for running this script as it is, otherwise remove the -w option (see code for details).

About

A DOS script to run a backup of a PostgreSQL database

Resources

License

Stars

Watchers

Forks

Packages

No packages published