Increase multipart-chunk-size-mb for aws s3 backup script
This commit is contained in:
parent
53126bfeb8
commit
5621993f72
@ -86,6 +86,7 @@ if command -v psql > /dev/null 2>&1; then
|
|||||||
sudo -u postgres pg_dump "$db" \
|
sudo -u postgres pg_dump "$db" \
|
||||||
| gzip -v9 \
|
| gzip -v9 \
|
||||||
| aws s3 cp - \
|
| aws s3 cp - \
|
||||||
|
--multipart-chunk-size-mb 50 \
|
||||||
"s3://{{ backup_s3_bucket }}/{{ inventory_hostname }}/$db-$(date "+{{ backup_dateformat }}").pgsql.gz"
|
"s3://{{ backup_s3_bucket }}/{{ inventory_hostname }}/$db-$(date "+{{ backup_dateformat }}").pgsql.gz"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user