If the user is getting an error like "No X11 Display variable was set, but this program performed an operation which requires it" as shown in the below screenshot, while restoring in Linux,
It is because, the restore wasn't executed with <backup_file_path> argument after restoreData.sh -c, leading to the restore being attempted to get backup file path in GUI in a headless machine leading to the issue.

Note: This issue occurs in a headless machine.
>> So, execute the command, restoreData.sh -c <backup_file_path>
For instance,
sh restoreData.sh -c D:\SCP_Builds\SCP_11026\backup\backup_postgres_11026_fullbackup_11_26_2022_13_05\backup_postgres_11026_fullbackup_11_26_2022_13_05_part_1.data