# Error while restoring Wordpress

**URL:** <https://forum.yunohost.org/t/error-while-restoring-wordpress/32439>\
**Category:** Support\
**Tags:** english\
**Created:** [December 8, 2024, 6:50pm UTC](https://forum.yunohost.org/t/error-while-restoring-wordpress/32439 "2024-12-08T18:50:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rodinux](https://forum.yunohost.org/user_avatar/forum.yunohost.org/rodinux/32/7029_2.png) [@rodinux](https://forum.yunohost.org/u/rodinux)\
**Post date:** [December 8, 2024, 10:02pm UTC](https://forum.yunohost.org/t/error-while-restoring-wordpress/32439/2 "2024-12-08T22:02:36Z")

</div>

Are you sure it isn’t related to the db.sql file ?

As I have explain here

> [@Wordpress: Recovery from backup not possible - ERROR at line 1: Unknown command '\\-'](https://forum.yunohost.org/t/wordpress-recovery-from-backup-not-possible-error-at-line-1-unknown-command/32348/2):
>
> I think you have a know issue with the db since mariadb have changed… like in this post [Force Install YNH on debian 11 because backup - #3 by langer](https://forum.yunohost.org/t/force-install-ynh-on-debian-11-because-backup/31750/3) You may do something like this connected on ssh and with the user root: Perhaps you can first copy the backup file wordpress-pre-upgrade1.tar or wordpress-pre-upgrade2.tar in a folder wordpress-tar, sudo -i mkdir /root/wordpress-tar cp -a /home/yunohost/backup.archives/wordpress-pre-upgrade1.tar /root/wordpress-tar then extract the tar file cd …

and here

> [@Force Install YNH on debian 11 because backup](https://forum.yunohost.org/t/force-install-ynh-on-debian-11-because-backup/31750/9):
>
> Ok so it work, I mixed some of your answers wink before migration, I made an backup on my computer. after migration, I didn’t make qu backup, and I fucked up the network config. si I did reinstall from scratch my VPS on Debian 12 but I couldn’t retore the backup because of the ERRORS shown in previous message. I’ve found, the db.sql files in the archive .tar (apps/nextcloud/backup/db.sql) and manually deleted the first line /\*M!999999\- enable the sandbox mode \*/ then upload my archive a…

---

_[View the full topic](https://forum.yunohost.org/t/error-while-restoring-wordpress/32439)._
