# Having Restore Issues

**URL:** <https://community.open-emr.org/t/having-restore-issues/351>\
**Category:** Management and Administration\
**Created:** [July 18, 2011, 8:46pm UTC](https://community.open-emr.org/t/having-restore-issues/351 "2011-07-18T20:46:33Z")\
**Posts on this page:** 2\
**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:** [July 18, 2011, 8:46pm UTC](https://community.open-emr.org/t/having-restore-issues/351/1 "2011-07-18T20:46:33Z")

</div>

**anonymous** wrote on [Monday, July 18, 2011](https://sourceforge.net/p/openemr/discussion/202505/thread/259453ba/#226a):

I’m in the process of testing the restore function in our newly installed system and I’m running into an issue.

The other threads on this topic suggest moving the “openemr” web directory before a restore, so I moved it to the desktop. I also placed the “emr\_backup.tar” file and a copy of the “restore” script onto the desktop. When I execute the “restore” script through the terminal (running Ubuntu 10.10), I receive a flash of error messages that does not cease until I close the terminal session.

The message displayed reads as follows:

"Extracting …  
tar: option requires an argument - ‘f’  
Try ‘tar -help’ or ‘tar -usage’ for more information  
Error: tar could not extract ’ '.

read: 163: Illegal option -e"

Other than this, my system has been running fine. I’m using v4.0.0 with the most recent patch. I have manually entered approximately 200 patients worth of data/encounters and need an emergency restore plan in place before I can proceed any further. I’m certain the mistake I’m making is something small. Can one of you experienced OpenEMR users bail me out here? Any help would be much appreciated.

---

<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:** [July 20, 2011, 1:30am UTC](https://community.open-emr.org/t/having-restore-issues/351/2 "2011-07-20T01:30:21Z")

</div>

**anonymous** wrote on [Wednesday, July 20, 2011](https://sourceforge.net/p/openemr/discussion/202505/thread/259453ba/#3ff3):

Turns out I was using the wrong command to execute the script. I was using “sh restore” instead of “./restore” :\
