Zen Cart Logo
Forums / All Other Contributions/Addons / backup mysite mod -- is it working?

backup mysite mod -- is it working?

Locked

Views: 3,023

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
21 Mar 2008, 5:14 PM
#1
colemanpa avatar

colemanpa

Zen Follower

Join Date:
Oct 2007
Location:
Fairbanks, Alaska
Posts:
423
Plugin Contributions:
0

backup mysite mod -- is it working?

I installed the backup mysite mod and it shows up in the admin-tools but when I click on the backup button I get an hourglass for 10 seconds then done.

does anyone know what this mod does like where it puts the backup if it makes one? and should there not be more then just that?

28 Mar 2008, 3:23 AM
#2
elishama3 avatar

elishama3

New Zenner

Join Date:
Aug 2007
Posts:
62
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

I have the same question. It shows done, but I cannot find where it puts the backup (if it does at all).

28 Mar 2008, 3:33 AM
#3
tshooters avatar

tshooters

Totally Zenned

Join Date:
Dec 2005
Posts:
1,037
Plugin Contributions:
2

Re: backup mysite mod -- is it working?

Ooops..sorry. Posted about the wrong contribution.

29 Mar 2008, 12:27 AM
#4
elishama3 avatar

elishama3

New Zenner

Join Date:
Aug 2007
Posts:
62
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

Someone suggested it should be in admin/backups, but it is not there.

I installed the mysql backup, and that works correctly and I found the file in admin/backups, but the site backup mod does not do the same.

6 Dec 2008, 8:29 AM
#5
jmeca avatar

jmeca

New Zenner

Join Date:
Nov 2006
Location:
Sapin
Posts:
44
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

Hello: i Have problem whit backup mysite i install it but but i think doesn't work. I did all things but it don't do nothing, only after long time get a blank screen whit "Error"

Anyone have ideas?

Thank you very much in avanced for your help :hug:

19 Dec 2008, 2:30 AM
#6
rmkiser avatar

rmkiser

New Zenner

Join Date:
Nov 2005
Posts:
32
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

I simply changed the line

if (strlen($pathfile) > 99) die('Error'); in admin/backup_mysite.php
to
if (strlen($pathfile) > 9999) die('Error');

This corrected the problem of it not saving to your computer and also not backing up the entire site. Not sure why changing it from 99 to 9999 worked. So, the update was found by accident. It may have something to do with the number of files it will back up??? Not sure.

19 Dec 2008, 3:27 AM
#7
colemanpa avatar

colemanpa

Zen Follower

Join Date:
Oct 2007
Location:
Fairbanks, Alaska
Posts:
423
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

I changed the file but that did not make the module work, after I made the changes the backup button still does nothing or if it is doing something I don't know what it is, to bad i would like to see this work!

pete

14 Feb 2009, 3:08 AM
#8
jenred avatar

jenred

New Zenner

Join Date:
Jul 2004
Location:
Australia
Posts:
48
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

did anybody get this working?

30 Jun 2009, 11:22 AM
#9
jwurster avatar

jwurster

New Zenner

Join Date:
Jun 2009
Posts:
22
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

I did get this working after making a couple of mods to the backup_mysite.php file. I had coded a comparable extension for Vanilla forum software and decided to compare the two.

If you edit that file and look in the function Tar_Archive, I added an "@" and then 2 lines of code as follows:

      readfile($tar_file);
      @unlink($tar_file); /*jimw add @*/
      if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') touch($tar_file); /*jimw add*/
      ob_end_flush(); /*jimw add*/

Then I modified the following line:

  $tar = new Tar_Archive("$tar_file"); /*jimw remove $ before new*/

I've attached the modified file.

22 Sep 2009, 4:31 PM
#10
tapper avatar

tapper

Zen Follower

Join Date:
Nov 2007
Location:
Upstate NY
Posts:
233
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

THANK YOU THANK YOU jwurster!! :clap:

You should package this, or have the mods or someone update the package in the DL area. that one is dangerous.

I have had nothing but errors from that orig module, like these:
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/public_html/.../admin/backup_mysite.php on line 66
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/.../admin/backup_mysite.php:66) in /home/darenec/public_html/.../admin/backup_mysite.php on line 45

And then it breaks the admin page, prints my htaccess file behind various text boxes, displays install instructions for htmlarea (??), etc. Scary, scary behaviour.

jwurster:

I did get this working after making a couple of mods to the backup_mysite.php file. I had coded a comparable extension for Vanilla forum software and decided to compare the two.

If you edit that file and look in the function Tar_Archive, I added an "@" and then 2 lines of code as follows:

      readfile($tar_file);
      @unlink($tar_file); /*jimw add @*/
      if (strtoupper(substr(PHP_OS, 0, 3)) != 'WIN') touch($tar_file); /*jimw add*/
      ob_end_flush(); /*jimw add*/

Then I modified the following line:

  $tar = new Tar_Archive("$tar_file"); /*jimw remove $ before new*/

I've attached the modified file.

30 Oct 2009, 10:18 PM
#11
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

well, i'm confused, because even this 'updated' file did not do the trick for me!
i still get blanc pages afther my pushing the button...
i don't know what i did or where the mistake is i made..
i did everything according to the plan :-) but i have to have made a mistake in my cart ... but where....

18 Feb 2010, 1:27 AM
#12
nyzcaddict avatar

nyzcaddict

New Zenner

Join Date:
Dec 2009
Posts:
17
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

My backupmysite was working fine then one day when i tried to back up mysite it would give me.

Error 500 - Internal server error
An internal server error has occured!
Please try again later.

any thoughts?

thanks in advance

27 Feb 2010, 2:04 PM
#13
kernheimer avatar

kernheimer

Zen Follower

Join Date:
Jul 2009
Posts:
126
Plugin Contributions:
0

Re: backup mysite mod -- is it working?

I;m having exactly the same problem since a few weeks my backup is not been done and gives an 500 internal server error.
i;m realy devastated because for me it one of the best mods i had..
if anybody know what is wrong... please advise!:frusty::frusty: