Problem ======= * `pg_dump` may dump the data rows in arbitrary order. This messes with the final hash of the dump file, even though the data after restoring would be same. This creates additional uploads with no value Solution ======== * Utilize `pgdump-sort` script by `tigra564`, which attempts to sort data in the dump file specifically for hashing purposes.
17 lines
390 B
Markdown
17 lines
390 B
Markdown
## Backup Scripts
|
|
|
|
### Requirements
|
|
|
|
* systemd
|
|
* [AWS client](https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html)
|
|
* python3
|
|
* docopt
|
|
* [pgdump-sort](https://github.com/tigra564/pgdump-sort) (Bundled)
|
|
|
|
### Install
|
|
|
|
* Run `aws configure`
|
|
* Symlink unit files to `/etc/systemd/system`
|
|
* Run `systemctl enable` on units and slices
|
|
* Run `systemctl start` on timers
|