On Wed, 2018-10-10 at 00:17 +0000, kevin(a)scrye.com wrote:
+/usr/bin/pg_dump --exclude-table-data users --exclude-table-data
tokens --exclude-table-data 'social*' --exclude-table-data sessions
-C $DB | /usr/bin/pxz -T4 > /backups/$DB-public-$(date +%F).dump.xz
It might be good to add a comment over this line that explains that
it's excluding the data since it has personally identifiable info, so
that nobody removes it in the future not knowing what it was for.