wait for pg, copy via pgbackups