To restore what's possible from a zip file under linux, use the following command:
zip -FF broken.zip --out saved.zip
For rar files, use the following command:
unrar x -kb broken.rar
ssh root@nas 'cd /volume1/web && tar -cf - dokuwiki | gzip -9' > dokuwiki-20210706.tgz