fixed pg_backup and pg_restore tasks