Partial implementation for pg_basebackup