9702287a926335939e26c4485d349fde82aa5696
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.
Backup Scripts
Requirements
- systemd
- AWS client
- python3
- docopt
- pgdump-sort (Bundled)
Install
- Run
aws configure - Symlink unit files to
/etc/systemd/system - Run
systemctl enableon units and slices - Run
systemctl starton timers
Description
Languages
Python
79.8%
Shell
20.2%