Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 4c7d517

Browse files
committed
Remove -jobs as it doesnt reduce dump creation while doubling IOPS and read waiting time
1 parent bde6483 commit 4c7d517

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: README.md

+6
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,9 @@ docker run --rm \
1616
-e S3_BUCKET="" \
1717
CoderDojo/pg-backup
1818
```
19+
20+
## Build
21+
docker build . --tag=coderdojo/pg-backup
22+
23+
## Push
24+
docker push coderdojo/pg-backup

Diff for: backupToS3.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919

2020
mkdir backup_dump
2121
args=("$@")
22-
dump_command="pg_dump -j 12 -Fd -f backup_dump ${args[*]} '${PGDATABASE}' --verbose"
22+
dump_command="pg_dump -Fd -f backup_dump ${args[*]} '${PGDATABASE}' --verbose"
2323
echo "Starting ${dump_command}"
2424
eval "$dump_command"
2525
if [ "$(ls -A backup_dump)" ]; then

0 commit comments

Comments
 (0)