Cannot Perform recovery on 8.0.0. No site ID found

OS: Debian 13. Php8.4.

We’re trying to move openEMR 8.0.0(3) to another computer. An error came up with No site ID found.

sudo ./restore
./restore: line 17: shopt: -e: invalid option
shopt: usage: shopt [-pqsu] [-o] [optname …]
WARNING: This script is experimental.
It may have serious bugs or omissions.
Use it at your own risk!
Now you will be asked for the backup file.
By default this is named emr_backup.tar, although you may have saved it as something else.

Enter path/name of backup file: /home/emr_backup.tar

Extracting /home/emr_backup.tar …
tar: Substituting `.’ for empty member name
Extracting /tmp/emr_backup/openemr.tar.gz …
Error: No site ID found!

Am I doing something wrong?

Can’t say I’ve ever used the onboard backup utility, but the first place I’d start, would be to manually extract and examine the contents of your ‘emr_backup.tar’ file, to verify what’s in there.

Maybe someone with experience using that backup/restore tool can chime in here with better information about where it’s expecting to find that site ID as it goes through the extraction/data reconstruction process…