Files
backup-scripts/README.md
Vasili Sviridov 9702287a92 Workaround for pg_dump non-idempotent behaviour
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.
2022-12-26 12:35:38 -08:00

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