Backup 4.0 on window 7

markthepharaoh wrote on Thursday, September 22, 2011:

Hello,

Does the backup function work on windows 7 or I still need to use Jeo’s method?  if I use Jeo’s method do I need to modify the backup that I use for 3.2 or it is the same file system. Thank you.

bradymiller wrote on Friday, September 23, 2011:

Hi,

Hopefully the backup function (I am assuming you mean Administration->Backup within OpenEMR) is working on windows 7; let us know. Also, in order to answer your question, can you provide a link to Joe’s method?

-brady
OpenEMR

markthepharaoh wrote on Saturday, September 24, 2011:

Brady,
Thank you.  Joe’s method (Joe Holzer) is at:

http://www.open-emr.org/wiki/index.php/OpenEMR_Backup_Tools

I will let you know about the backup, and yes I meant the Administration->Backup within OpenEMR.

Thanks again.

Mark

bradymiller wrote on Saturday, September 24, 2011:

Hi,

Hopefully the Administration->Backup works in Windows. But if you use Joe’s method, it is actually simpler now that the 4 directories:
c:\xampp\htdocs\openemr\documents
c:\xampp\htdocs\openemr\edi
c:\xampp\htdocs\openemr\era
c:\xampp\htdocs\openemr\custom\letter_templates

have all been migrated to:
c:\xampp\htdocs\openemr\sites\default\

So, you could essentially just backup that directory, which contains all 4 directories above.
(note you still need to backup the mysql directory)

-brady

arnabnaha wrote on Saturday, September 24, 2011:

Hi brady…
Just tried the backup feature. it still doesnt work. i am getting the following:

Dumping OpenEMR database…
“C:/xampp/mysql/bin\mysqldump -u “openemr” -p"0p3n3mr” -opt -quote-names -r C:\Windows\TEMP/openemr_web_backup/emr_backup/openemr.sql “openemr”" returned 2:

sunsetsystems wrote on Sunday, September 25, 2011:

arnabnaha, you need the Archive_Tar class in order for the backup to work with Windows.  That error message indicates it’s not installed.  As I recall that’s part of the PHP Pear package.

Rod
www.sunsetsystems.com

markthepharaoh wrote on Sunday, October 16, 2011:

Wait so I’m still confused I made sure Archive_Tar is installed with my php setup and it is (along with pear ofcourse)… But my question still remains it just does it but it doesn’t pop a download link… i am now on 4.1.0 and I tested and it still doesnt work what log files should i be looking at and where are they located, and what should i be looking for?

Thanks in advance,

Mark

bradymiller wrote on Sunday, October 16, 2011:

Hi,

Need to look in the php log file (depends on OS and php package,xampp etc.). Also, are you seeing anything in:
C:\Windows\TEMP\openemr_web_backup

-brady

markthepharaoh wrote on Tuesday, October 18, 2011:

Brady,

There is a backup file in C:\Windows\TEMP\openemr_web_backup but it is not the right size.  The backup runs it says dumping data and then dumping data tree and it hangs forever there! Thanks for your help.

bradymiller wrote on Tuesday, October 18, 2011:

Hi,

Try the following:

Remove the php max execution time by placing this php command at top of the openemr/interface/main.backup.php script (below the require_once stuff):
set_time_limit(0);

Then try to run the backup in OpenEMR again.

-brady

bradymiller wrote on Tuesday, October 18, 2011:

Error above,

Meant to say openemr/interface/main/backup.php for the filename.

-brady