# Restore script error

**URL:** <https://community.open-emr.org/t/restore-script-error/2347>\
**Category:** Management and Administration\
**Created:** [May 19, 2011, 3:21pm UTC](https://community.open-emr.org/t/restore-script-error/2347 "2011-05-19T15:21:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 19, 2011, 3:21pm UTC](https://community.open-emr.org/t/restore-script-error/2347/1 "2011-05-19T15:21:21Z")

</div>

**[doktoro](https://sourceforge.net/u/doktoro/)** wrote on [Thursday, May 19, 2011](https://sourceforge.net/p/openemr/discussion/202505/thread/f3edc48d/#04dc):

I’m preparing to upgrade my 3.2.0 installation to 4.0, in the process of which I am also upgrading my software from Ubuntu 9.04 to 11.04.

I’m doing a test run on a separate machine running Ubuntu 11.04 and a fresh install of OpenEMR 4.0.0. I have an emr\_backup.tar file created with the Adminstration \> Backup function from the 3.2 machine (which I renamed emr\_backup\_1.tar) and I am trying to restore it to the 4.0 machine. Here’s what I get in the terminal:

```
Enter path/name of backup file: /home/myusername/Downloads/emr_backup_1.tar
 
Extracting /home/avery/Downloads/emr_backup_1.tar ...
Extracting /tmp/emr_backup/openemr.tar.gz ...
ls: cannot access sites: No such file or directory
grep: sites//sqlconf.php: No such file or directory
grep: sites//sqlconf.php: No such file or directory
grep: sites//sqlconf.php: No such file or directory
 
Do you want to specify site ID, locations or database names for the restore? [N/y] N
 
Error: Site '' already exists in '/var/www/openemr/sites'.

```

what am I doing wrong?

I confess, rather shamefully, that I have never verified my backups previously.

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 19, 2011, 3:26pm UTC](https://community.open-emr.org/t/restore-script-error/2347/2 "2011-05-19T15:26:05Z")

</div>

**[sunsetsystems](https://sourceforge.net/u/sunsetsystems/)** wrote on [Thursday, May 19, 2011](https://sourceforge.net/p/openemr/discussion/202505/thread/f3edc48d/#83be):

To restore a 3.2 backup you must use the 3.2 version of the restore script.&nbsp; After that’s done you can proceed to upgrade… don’t restore on top of an existing installation.

Rod  
[www.sunsetsystems.com](http://www.sunsetsystems.com)

---

<div class="post-metadata">

**Author:** ![system](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/2X/b/bb9e4e8ae2ea7faac2e952fd9e38a3ce03aac403.png) [@system](https://community.open-emr.org/u/system)\
**Post date:** [May 20, 2011, 11:59am UTC](https://community.open-emr.org/t/restore-script-error/2347/3 "2011-05-20T11:59:05Z")

</div>

**[doktoro](https://sourceforge.net/u/doktoro/)** wrote on [Friday, May 20, 2011](https://sourceforge.net/p/openemr/discussion/202505/thread/f3edc48d/#5260):

Thanks, Rod.
