Symptoms
-
A backup cannot be restored, following error is returned instead:
PLESK_ERROR: Archive error: Unable to extract files from /var/lib/psa/dumps/domains/example.com/backup_user-data_1805242210.tar to /var/www/vhosts/example.com: /bin/tar: httpdocs/administrator/backups/index.html: Cannot open: File exists
/bin/tar: httpdocs/administrator/cache/index.html: Cannot open: File exists
/bin/tar: httpdocs/administrator/components/com_admin/admin.admin.php: Cannot open: File exists
/bin/tar: httpdocs/administrator/components/com_admin/index.html: Cannot open: File exists
/bin/tar: httpdocs/administrator/components/com_admin/admin.admin.html.php: Cannot open: File exists
/bin/tar: httpdocs/administrator/components/com_admin/toolbar.admin.php: Cannot open: File existsOR
PLESK_ERROR: Archive error: Unable to extract files from /var/lib/psa/dumps/domains/example.com/backup_user-data_1805242210.tar to /var/www/vhosts/example.com: /bin/tar: /var/lib/psa/dumps/: Permission denied
/bin/tar: Error is not recoverable: exiting now -
Permissions on these folders forbid owner to create files (there are no “w” in the output of
ls
):# ls -ld /var/www/vhosts/example.com/httpdocs/administrator/
dr-xr-xr-x 2 user psacln 4096 Jun 8 18:30
Cause
Backup Manager is unable to create files as user due to the insufficient permissions.
Resolution
-
Connect to the server via SSH
-
Restore the backup manually from the archive:
# set +v | tar -f /var/lib/psa/dumps/domains/example.com/backup_user-data_1805242210.tar -xvm –same-permissions –same-owner -C /var/www/vhosts/example.com –wildcards –anchored