diff --git a/postgres-backup-s3/README.md b/postgres-backup-s3/README.md index 25e6aa0..a19abb9 100644 --- a/postgres-backup-s3/README.md +++ b/postgres-backup-s3/README.md @@ -44,6 +44,11 @@ You can additionally set the `SCHEDULE` environment variable like `-e SCHEDULE=" More information about the scheduling can be found [here](http://godoc.org/github.com/robfig/cron#hdr-Predefined_schedules). +### Backup File Name / Path +By default, if `POSTGRES_BACKUP_ALL` is true, the dump file will be put at `/all_.sql.gz`. When using `POSTGRES_DATABASE`, each database listed will be backed up to the object path `/_.sql.gz`. + +If you wish to make these filenames static, you can use the `S3_FILE_NAME` variable, which will change these formats to `/.sql.gz` or `/_.sql.gz` accordingly. + ### Backup All Databases You can backup all available databases by setting `POSTGRES_BACKUP_ALL="true"`.