Asset server Restore not working

after a full backup of the asset server restore isn’t working

/opt/unity_asset_server/bin/pg_restore -U admin -h localhost -c -F c -d BACKUP < BACKUP

response :

pg_restore: [archiver] unexpected end of file

Has anyone found a solution to that ?

somehow I landed on some very old restore instructions, the new command as_restore launches BUT after a while it stops working and returns an error just before it restore the project I am interested in ahah !

Restoring project: TOD
TRUNCATE TABLE
set_project_info

tod
(1 row)

fix_user_privileges

(1 row)

Restoring project:
" does not existtabase "
.*: No such file or directory
pg_restore: [archiver] input file is too short (read 0, expected 5)
. Got error exit code: 0re project