• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue How to restore a external backup if the backup tool doesn't work?

alvmv

New Pleskian
Hello,
Accidentally I delete a log folder from /var/log/
After this I can't enter the plesk panel and the server is down.
I have backed up using onedrive tool just 1 hour before but I can't restore the backup either unzip it in my computer (it is in .tar format with multiple files...)

I only need to restore the log folder but I can't! any ideas?

If I try to use there repair & backup tool via terminal... :
Bash:
root@serv:~# systemctl restart plesk - repaird


Failed to restart plesk.service: Unit plesk.service not found.


Failed to restart -.service: Unit -.service not found.


Failed to restart repaird.service: Unit repaird.service not found.

Bash:
root@serv:~# plesk bin pleskrestore -i
Warning: Current locale is unusable. Using 'C' instead.
[2021-09-13 00:16:26.111] ERR [panel] DB query failed: SQLSTATE[HY000] [2002] No such file or directory:
0: /opt/psa/admin/plib/Db/Adapter/Pdo/Mysql.php:64
    Db_Adapter_Pdo_Mysql->query(string 'SET sql_mode = ''')
1: /opt/psa/admin/plib/CommonPanel/Application/Abstract.php:103
    CommonPanel_Application_Abstract::initDbAdapter()
2: /opt/psa/admin/plib/api-common/AbstractCu.php:1520
    AbstractCu::initDb()
3: /opt/psa/admin/plib/api-common/AbstractCu.php:1546
    AbstractCu::initCLI()
4: /opt/psa/admin/plib/backup/pleskrestore.php:6
ERROR: Plesk\Exception\Database: DB query failed: SQLSTATE[HY000] [2002] No such file or directory (Mysql.php:64)
exit status 1
 
DB query failed: SQLSTATE[HY000] [2002] No such file or directory
The directory /var/log/mariadb is missing on the server.
Create the directory /var/log/mariadb:

# mkdir /var/log/mariadb

Assing correct user and group:

# chown mysql:mysql /var/log/mariadb

Start MariaDB:

# systemctl start mariadb
 
The directory /var/log/mariadb is missing on the server.
Create the directory /var/log/mariadb:

# mkdir /var/log/mariadb

Assing correct user and group:

# chown mysql:mysql /var/log/mariadb

Start MariaDB:

# systemctl start mariadb
With this and doing other fixes the Plesk installation is working. Repair kit did the last details. Thanks
Anyway, I lost many time because I have had the hability of restore a backup from the cloud... this should be warned in the plesk documentation because people could think that they are safe but they arent...
 
Anyway, I lost many time because I have had the hability of restore a backup from the cloud... this should be warned in the plesk documentation because people could think that they are safe but they arent...
/var/log is OS related directory. Plesk doesn't backup the whole OS.
You can find information about what is backed up by Plesk Backup Manager here: Backing Up Data
 
Back
Top