You need to shutdown the cluster , restore(unzip and copy) the files & folders from Basebackup to data directory. Remove old files present in pg_wal directory in the file system backup.
If there are any unarchived WAL segment files recovered from crashed cluster, copy them to pg_wal directory.
Set the restore_command (This command is used to retrieve archive segment of the WAL Files) and recovery_target based on the PG version you are on.
Temporarily modify pg_hba.conf to prevent ordinary users from connecting. Stop / block all the connections.
Make the recovery.signal ( if version >12) and start the cluster.
Modify pg_hba.conf to allow users to connect to the database.