About the pre-restore check
The pre-restore check verifies the following:
Availability of the PostgreSQL environment.
Available space with the storage.
Empty target directory before initiating restore operation.
While performing restore and recovery, the server instance on same port must be up and running and data directory must not be empty.
(For Windows) For pg_basebackup protection, OpenSource TAR utility must be installed on the windows deployment. Empty target directory before initiating restore operations.
ICACLS windows command-line utility packages must be installed and installed path must be a part of environment path variable.