Python script that takes a backup of a PSQL database and copies to a S3 bucket.
boto3
- Install python dependancies
- Copy files to chosen folder
- Update cron to point to psql_backup.py
- Update wasabiconfig.py with necessary information.
- endpoint_url: Wasabi endpoint URL for your bucket
- aws_access_key_id: Wasabi/S3 access_key
- aws_secret_access_key: Wasabi/S3 secret_key
- retention_days: Retention days for files host in the Wasabi/S3 bucket. The pytnon script will delete files older than days specified.
- db: Database to backup
- pguser: Psql user
- pgpassword: Psql password of user