# Restore Error

**URL:** <https://community.localwp.com/t/restore-error/51168>\
**Category:** Support\
**Tags:** windows-10, restore-site, cloud-backups\
**Created:** [August 17, 2025, 3:19am UTC](https://community.localwp.com/t/restore-error/51168 "2025-08-17T03:19:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![shige](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shige](https://community.localwp.com/u/shige)\
**Post date:** [August 17, 2025, 3:19am UTC](https://community.localwp.com/t/restore-error/51168/1 "2025-08-17T03:19:44Z")

</div>

Hello.  
I’m backing up my data to Google Drive.  
I backed up my new site after it was completed.  
I then installed plugins and themes and made a second backup.  
I then uploaded media, but I wasn’t satisfied with the results.  
I also got an error when trying to restore from the second backup.  
The message I got was:

cloud backup restore failed! Error at line 535 unknown command.

I didn’t know the cause, so I successfully restored from the backup the first time.  
For some reason, I can’t restore the second backup. It displays an error.  
I only added plugins and a theme when I made the second backup,  
and there are no major changes from the first backup.  
Why does restoring the second backup result in an error?  
I’d appreciate any advice.

* * *

- **Local Version:9.2.6**

- **Operating System (OS) and OS version:Windows10 64Bit**

* * *

### Local Logs

Attach your Local Logs here ([Help Doc - Ret](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/)

[local-logs.zip](https://community.localwp.com/uploads/short-url/xiiePB0f3yov9RpQuRVOHoDcuuh.zip) (332.0 KB)

[rieving Local’s Log](https://localwp.com/help-docs/troubleshooting/retrieving-locals-log-file/))

* * *

_ **Security Reminder** _  
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

 ![25-08-17-200](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/d/1/d1f049a1f70fd122d5178aed297a09aefc4111f4.jpeg)

 ![25-08-17-150](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/3X/f/4/f4ac71f67adc62eb5470a1c9fa08578170c45b42.png)

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [August 18, 2025, 3:31pm UTC](https://community.localwp.com/t/restore-error/51168/2 "2025-08-18T15:31:11Z")

</div>

Sorry you encountered this, and thanks for sharing your logs, @shige.

The backed up SQL file seems to contain corrupt data, so Local is unable to import it:

> {“class”:“ImporterLocalExport”,“level”:“error”,“message”:“Unable to import C:/Users/shige/Local Sites/geme-test/app/sql/local.sql”,“stack”:"Error: ERROR at line 476: Unknown command ‘\�’.\n

This may not be due to a change you made in WordPress, but because of an error writing the file. (This isn’t something you should encounter very often, but disk/network issues as well as antivirus or security software could affect this process.)

If you have only added added plugins and a theme since your first backup, the quickest fix will be to restore your working backup then re-add the plugins and theme.

If instead you want to attempt recovery of the second backup, you could follow the manual recovery guide as described below.

> **[Manually Restore a Cloud Backup with Restic](https://localwp.com/help-docs/troubleshooting/manually-restore-a-cloud-backup-with-restic/)**
>
> Cloud Backups makes use of Restic to create and manage the backups for a site. One of the main features of Restic is that it creates incremental backups which mean that only files that have changed…

Then try to repair the SQL file if possible (by inspecting/adjusting the content on line 535), and zip up and import the database and files together:

> **[Import/Export a WordPress Site](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/#restore-local-site-from-site-files)**
>
> This help document will walk you through how to import and export a site to and from Local. It will also go over how to restore from only Local site files. Table of Contents: Local is pretty flexible…

---

<div class="post-metadata">

**Author:** ![shige](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shige](https://community.localwp.com/u/shige)\
**Post date:** [August 25, 2025, 8:01am UTC](https://community.localwp.com/t/restore-error/51168/3 "2025-08-25T08:01:34Z")

</div>

Hello. Thanks for your reply.  
Please wait while I check.  
The easiest way to do this is to export the backup and save it locally,  
and then import the export file when you want to restore it, right?  
In that case, would it be better to delete the entire existing site before  
exporting and then import?

---

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [August 27, 2025, 8:58am UTC](https://community.localwp.com/t/restore-error/51168/4 "2025-08-27T08:58:24Z")

</div>

You’ll need to follow the steps above if you want to export a zip from a backup, @shige.

You can keep the current site when importing a new one, though — just give the new site you’re importing a new name.

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [November 25, 2025, 8:59am UTC](https://community.localwp.com/t/restore-error/51168/5 "2025-11-25T08:59:02Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
