Cannot restore backup from cli

I tried writing my own script to fix it which didn’t work.

I’m also not an expert with gzips, so not much I can do either. If anybody else knows how I can restore it with full access to the sql script and uploads then please let me know. SQL script is fine at a glance and the uploads are fine as well.