Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vutrandn94/backup-restore-postgresql

Backup & Restore PostgreSQL
https://github.com/vutrandn94/backup-restore-postgresql

backup-script postgresql restore-script

Last synced: 7 days ago
JSON representation

Backup & Restore PostgreSQL

Awesome Lists containing this project

README

        

# backup-restore-postgresql
Backup & Restore PostgreSQL with user authentication

*Backup will be stored in folder with format "%d%m%Y"*

## Detailed information of variables

| Variable | Describe |
| :--- | :--- |
| PGUSER | PostgreSQL login user (Default: root) |
| PGPASSWORD | PostgreSQL password login user |
| PGPORT | PostgreSQL port connection (Default: 5432) |
| PGHOST | PostgreSQL host connection (Default: localhost) |
| DB_EXCLUDE | Exclude database backups |
| BACKUP_FOLDER | Folder storage backups |
| ROTATE_KEEP | Specify the number of backup copies to keep (Default: 7)|
| BACKUP_DIR | Exact path to the folder storing the backup files in (.sql) format that need to be restored |