mods to pg_backup.sh