SymptomsThe following error was shown when try executing script backup-unpack
File "/opt/psa/bin/backup-unpack", line 5
SyntaxError: invalid syntax
CauseOn Debian operating system the script contains a syntax error. Here is the script with an error:
~# cat /opt/psa/bin/backup-unpack
sys.path[:0] = ["/opt/psa/admin/lib/python","/opt/psa/admin/share/backup_unpack","/usr/lib/sw/python2.4/site-packages"]
It should be backup_unpack not backup-unpack.
ResolutionThe problem will be fixed in future update of Parallels Plesk Panel that will be released after version 9.2.3.
In Parallels Plesk Panel 9.2 it is recommended that you fix the script manually. You may use the following command:
~# sed -i 's/backup-unpack/backup_unpack/g' /opt/psa/bin/backup-unpack