chore: update readme

This commit is contained in:
2024-01-20 04:10:23 +01:00
parent 52ed96ae09
commit 357469ec56

View File

@@ -162,7 +162,7 @@ docker-compose up -d
```sh
docker run --rm --privileged --device /dev/fuse --name pg-bkup -e "DB_HOST=db_hostname" -e "DB_USERNAME=username" -e "DB_PASSWORD=password" -e "ACCESS_KEY=your_access_key" -e "SECRET_KEY=your_secret_key" -e "BUCKETNAME=your_bucket_name" -e "S3_ENDPOINT=https://s3.us-west-2.amazonaws.com" jkaninda/pg-bkup bkup -o backup -s s3 -d database_name
```
> To change s3 backup path add this flag : --path /mycustomPath . default path is /pg_bkup
> To change s3 backup path add this flag : --path /mycustomPath . default path is /pg-bkup
Simple S3 backup usage
@@ -180,7 +180,7 @@ bkup --operation backup --storage s3 --dbname mydatabase
command:
- /bin/sh
- -c
- pg_bkup --operation restore --storage s3 -f database_20231217_115621.sql.gz --dbname database_name
- pg-bkup --operation restore --storage s3 -f database_20231217_115621.sql.gz --dbname database_name
environment:
- DB_PORT=5432
- DB_HOST=postgress