Articles in this section

Plesk backup restoration fails: Cannot open or Permission denied

Plesk for Linux kb: technical ABT: Group B

Applicable to:

  • Plesk for Linux

Symptoms

A backup cannot be restored in Plesk

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 exists

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

Cause

Backup Manager can't restore these files because their permissions don't allow the owner to create files.

Resolution

Restore the backup using the command-line.

  1. Connect to the server over SSH

  2. Restore the backup from the corresponding archive:

    # set +v | tar -f /var/lib/psa/dumps/domains/example.com/backup_user-data_1805242210.tzst -xvm --same-permissions --same-owner -C /var/www/vhosts/example.com --wildcards --anchored

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.