Use .env file for backup configuration #1

Open
skobkin wants to merge 17 commits from pg_backup_dotenv into main
Showing only changes of commit 06961c72b5 - Show all commits

View file

@ -1,6 +1,19 @@
# Database configuration
HOST="localhost"
PORT="5432"
USER="your_postgres_user"
# Backup path
BACKUP_PATH="/path/to/backup/directory"
DUMP_FORMAT="custom" # Use "custom" for .dump or "sql" for SQL compressed with Gzip
# Servers configuration
# Add as many as needed
# Database 1 configuration
DB1_HOST="localhost"
DB1_PORT="5432"
DB1_USER="user1"
DB1_NAME="database1"
DB1_DUMP_FORMAT="custom" # "custom" for .dump or "sql" for SQL compressed with Gzip
# Database 2 configuration
#DB2_HOST="remote_host"
#DB2_PORT="5432"
#DB2_USER="user2"
#DB2_NAME="database2"
#DB2_DUMP_FORMAT="sql"