diff -Nur --no-dereference smeserver-postgresql-0.2.0.old/root/etc/e-smith/events/actions/pgsql-dump-tables smeserver-postgresql-0.2.0/root/etc/e-smith/events/actions/pgsql-dump-tables --- smeserver-postgresql-0.2.0.old/root/etc/e-smith/events/actions/pgsql-dump-tables 2021-06-16 10:48:55.000000000 -0400 +++ smeserver-postgresql-0.2.0/root/etc/e-smith/events/actions/pgsql-dump-tables 2022-12-12 11:29:04.347000000 -0500 @@ -6,7 +6,10 @@ echo "postgresql is disabled - no tables dumped" >&2 exit 0 fi +pgdumpall="/usr/pgsql-13/bin/pg_dumpall" +#avoid error could not change directory to +cd /tmp umask 027 exec >/home/e-smith/db/pgsql/pgsql.dump chgrp postgres /home/e-smith/db/pgsql/pgsql.dump -exec chpst -u postgres pg_dumpall +exec chpst -u postgres $pgdumpall