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 66667dc103 - Show all commits

View file

@ -8,12 +8,10 @@ BACKUP_PATH="/path/to/backup/directory"
DB1_HOST="localhost" DB1_HOST="localhost"
DB1_PORT="5432" DB1_PORT="5432"
DB1_USER="user1" DB1_USER="user1"
DB1_NAME="database1"
DB1_DUMP_FORMAT="custom" # "custom" for .dump or "sql" for SQL compressed with Gzip DB1_DUMP_FORMAT="custom" # "custom" for .dump or "sql" for SQL compressed with Gzip
# Database 2 configuration # Database 2 configuration
#DB2_HOST="remote_host" #DB2_HOST="remote_host"
#DB2_PORT="5432" #DB2_PORT="5432"
#DB2_USER="user2" #DB2_USER="user2"
#DB2_NAME="database2"
#DB2_DUMP_FORMAT="sql" #DB2_DUMP_FORMAT="sql"