It looks like the restore function does not take DB_PORT variable into account.
even though DB_PORT is supplied the container returns the following logs:
DB_PORT not provided, defaulting to 3306
./
./backup_2020-10-29T02:26:28Z.sql
ERROR 2002 (HY000): Can't connect to MySQL server on '192.168.1.xx' (115)