Fix backup.pl for PostgreSQL local sockets

Fix bug #10430