Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] Website Backup - Create zipped copy of all site files


spooks

Recommended Posts

Hi Sam,

installed this mod i am now getting the following error Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 136848889 bytes)

 

server is running PHP Version 5.2.17, tried increasing the memory from 128m to 256m still the same error message

 

regards

Link to comment
Share on other sites

@@missery

 

Could you say which mode that was in and the approx size of the site

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Sam, in my control panel it states "Disk Space Usage 424.42" i presume this is the size of the site,

 

this was run in default mode i havent changed anything.

Link to comment
Share on other sites

@@missery There are two modes, file and memory, they work completely differently, which one did you select.

 

What size does the program report your site, 424MB is very big, I suspect most of that is emails, which won't be included.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

hi Spooks, i never selected any, it never gave me an option.

the only option i get is

 

Click ( HERE) to save a copy of all store files in 'zip' format.

 

A window will open with your backup zip file, click on 'save' to save it to your computer.

 

Thats it

Regards

Link to comment
Share on other sites

@@missery

 

which package have you installed, if the old one at http://addons.oscommerce.com/info/6986 instead of the new at http://addons.oscommerce.com/info/8387

 

The new tells you how big your site is & estimate of backup size first, then the two options, the old version did have memory problems, especially with big sites, hence the update

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

looks like i had them both installed, i have unistalled the old version but when i click on TOOLS-> BACKUP WEBSITE i am now redirected to my admin home page.

 

regards

Link to comment
Share on other sites

@@missery modify your admin/includes/filenames.php as per new install

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

in your install instructions it says

 

1.- Copy backup_website.php to /admin/includes/

 

there is no backup_website.php in the admin/includes folder i downloaded only in the admin folder , is this correct.

Link to comment
Share on other sites

@@missery

 

oop,s sorry, that's a typo :blush: It should say copy backup_website.php to admin/ that's where you will find the file in the package

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Strange still not working for me , i am still being redirected to my admin for some strange reason, not sure whats going on to be honest.

regards

Link to comment
Share on other sites

@@missery

 

Go through the new install & check you've done it all, double check you've actually uploaded the changes.

 

You could manually run the file by putting admin/backup_website.php in your browser address bar

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

@@missery

 

Another thought, the program check you are logged into admin (have a session) for security, if not it redirects away, how do you login to your admin?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Spooks

i have uninstalled every file and re installed them, done the edits to the files stated, still the same out come, i am being redirected to my admin/index.php

 

i have tried to run it manually and again i am redirected to my admin/index.php

 

i have oscommerce security, Security Pro from FWR Media installed and i have Rename /admin/ and htpasswd it, could these be causing the redirect issue?

 

regards

Link to comment
Share on other sites

@@missery

 

Another thought, the program check you are logged into admin (have a session) for security, if not it redirects away, how do you login to your admin?

@@spooks

my admin has been renamed and it is also password protected, dual login same password for both to save logging in twise

Link to comment
Share on other sites

@@missery

 

The admin rename don't matter, but it would seem there's a sessions issue, try this in backup_website.php

 

comment out (111)

 if (!tep_session_is_registered('admin') ) header('Location: ' . 'index.php');

 

and comment out (205)

 

if (!tep_session_is_registered('admin')) header('Location: ' . 'index.php');

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

right we are getting somewere now, i see the landing page, Website size: 353.84 MB Estimated compressed file size: 240.61 MB Containing 282 folders with 8906 Files. ( i hava a lot of images)

 

when i click "Click HERE to save a copy of all Website files in 'zip' format." i am now getting this error message

Fatal error: Call to undefined function tep_href_link() in /home/xxxxxx/public_html/xxxxxxx/includes/languages/english.php on line 363

 

this is line 363

define('TEXT_GIFT_ADD_CARROT', '<a href="' . tep_href_link(FILENAME_CATEGORIES) . '">Go to product edit page to add items to the list.</a>');

regards

Edited by missery
Link to comment
Share on other sites

@@missery

 

Your the second person to have links in their language file!! Not where they should be, don't people know of formatted string usage?

 

Do this: in backup_website.php:

 

after(90):

 

require(DIR_WS_FUNCTIONS . 'general.php');

 

 

add:

 

require(DIR_WS_FUNCTIONS . 'html_output.php');

 

 

and remove that same line from line 170 (appears there purely of error display)

 

To stop any Notice Display caused by conflicts within your language files

 

after(10):

$guess = 0; // ...

 

 

add:

 

error_reporting(E_ALL & ~E_NOTICE);

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Sam,

 

ok this seems to be working now but i am getting memory error,

i think i need to exclude the image directory from being backed up, how do we do this

 

regards

Link to comment
Share on other sites

@@missery

 

its says in the doc:

 

Just add any folders to be excluded as required, include the full path from catalog folder i.e. includes/languages/.

 

so add 'images/' or 'admin/images' to the list, comma separated.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

hi, sorry i missed that,

i have added images and admin images and i am still getting memory issues, not sure what else i can discard.

 

regards

Link to comment
Share on other sites

@@missery Which mode are you using and what size does it say with excluded folders (the size is reported after exclusion, so if no change there is a issue there)

 

Are you trying both methods, file uses little memory but needs disk space.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Hi Sam,

i have tried using both, file sizes are still showing the same with the excluded folders, so we have a problem here.

 

Backup All Website Files

Website size: 354.2 MB Estimated compressed file size: 240.86 MB Containing 282 folders with 8906 Files.

Excluded Directories: /renamedadmin/backups/ + /tmp/ + /tmp + images/ + renamedadmin/images/

 

File Mode Zipping: fails

Memory Mode Zipping: fails at around 85%

Edited by missery
Link to comment
Share on other sites

@@missery

 

The next version (out soon) will have more checks in place to catch issues,

but one thing to test, in your admin/configure.php does the definition for DIR_FS_DOCUMENT_ROOT have a trailing / like it should ?

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...