Backup Pro
ExpressionEngine 2, ExpressionEngine 3
Back to this add-on's main page
View Other Add-ons From mithra62
File backup not being saved with type=combined
Support (Resolved)
Tyssen
|
Posted: 08 May 2014 07:15 PM |
|
|
|
I’ve run wget http://www.domain.com.au?ACT=1&type=combined via cron and it saved a database backup but not a file backup.
I haven’t tried running the URL from a browser because there’s several 100 Mb of images on the server and it would take ages for it to complete.
So what steps are available to troubleshoot why it’s not saving file backups?
|
|
|
mithra62
|
Posted: 09 May 2014 05:22 AM |
# 1
|
|
Developer
|
Hi John,
Hmm… from your description, my initial instinct is that you may be trying to backup more than the server limits themselves can withstand. Even running from command line PHP be constrained by the environment settings and configuration.
My advice would be to split the Cron into 2 separate backups so the one doesn’t influence the other.
Eric
|
|
|
Tyssen
|
Posted: 13 May 2014 08:34 PM |
# 2
|
|
|
I tried that and got a db backup but still no file backup. Any minimum system requirements or PHP config settings I need to be aware of?
|
|
|
mithra62
|
Posted: 14 May 2014 03:25 PM |
# 3
|
|
Developer
|
Can you enable debugging in your EE index.php file and run the File backup Cron URL in your browser again? Sounds like there may be some errors going on here…
Eric
|
|
|
Tyssen
|
Posted: 15 May 2014 06:02 PM |
# 4
|
|
|
Tried that. Page just hangs but I can see in the status bar that something is happening and because it’s a large backup I just left the page and went about my work. Several hours later I found the page had stopped processing saying the connection was interrupted (browser error message, rather than server error).
|
|
|
Tyssen
|
Posted: 21 May 2014 10:06 PM |
# 5
|
|
|
So what’s my next step?
|
|
|
mithra62
|
Posted: 21 May 2014 10:14 PM |
# 6
|
|
Developer
|
Honestly John, I’m not sure. It’s certainly possible you’re trying to backup more than is reasonably possible using Backup Pro on your environment.
I think this may be something I have to take a look at personally. Can you send me the license number for the site in question so I can see if this qualifies for free support?
Eric
eric at mithra62 dot com
|
|
|
Paul vdW
|
Posted: 27 June 2014 07:24 AM |
# 7
|
|
|
Looks like our issue is similar to Tyssen’s. File backups never work via a cron job, but DB backups do.
Running file backup from within the CP does work though - including the copy to S3.
Tyssen, are yours working from within CP?
|
|
|
Paul vdW
|
Posted: 27 June 2014 07:36 AM |
# 8
|
|
|
I should add that file backups work when directly accessing the URL within the browser.
Is there a php command that can be run via CRON rather than a wget?
|
|
|
mithra62
|
Posted: 27 June 2014 12:13 PM |
# 9
|
|
Developer
|
Hi Paul,
Absolutely; wget is just a tool like any other. Curl works as well as would any tool to hit up a URL.
Eric
|
|
|
Paul vdW
|
Posted: 27 June 2014 02:35 PM |
# 10
|
|
|
Thanks for responding.
Yes, you’re right about wget/CURL, but I think you misunderstood my point. Requesting a URL requires that the webserver process the request and pass it to the PHP interpreter. When speaking of a php command run via CRON what’s being referred to is PHP from the command line. This avoids any timeouts, memory limits, etc. associated with the webserver and webserver-to-php-interface.
Hence the request for a direct php command (php cli).
|
|
|
mithra62
|
Posted: 27 June 2014 03:33 PM |
# 11
|
|
Developer
|
Oh, you’re right; completely missed your point.
Unfortunately though, since Backup Pro is an ExpressionEngine add-on, and EE doesn’t have any CLI capabilities, Backup Pro can’t either. It’s really a problem I can’t fix without completely decoupling every aspect of the backup process from any core ExpressionEngine functionality which, while a great idea, isn’t really feasible without a TON of effort in terms of reinventing lots of wheels. It’s really not practical at this point, you know?
Eric
|
|
|
Paul vdW
|
Posted: 27 June 2014 04:22 PM |
# 12
|
|
|
Good point! I was about to agree with you since I’ve never heard of EE cli access, but I did a search and came with this:
https://github.com/rsanchez/ExpressionEngine-Bootstrap
A quick play reveals that it doesn’t work with our multi-env config since that’s currently dependant on superglobals like $_SERVER.
|
|
|
mithra62
|
Posted: 27 June 2014 04:49 PM |
# 13
|
|
Developer
|
Yeah, I imagine you’d have quite a few issues using that and it’s not something I could support. Not officially anyway.
One idea that comes to mind, and forgive me for shilling here, is an add-on of mine called Automat:ee.
http://devot-ee.com/add-ons/automatee
Automat:ee allows you to setup Cron style jobs within EE using just a template tag so you can schedule things without using wget or similar. Not sure if it’ll work for your situation but thought I’d throw it out there.
One thing I’ll look into though for a future release is creating a PHP script that can be called from CLI that’ll allow backups to be created without EE being involved.
Eric
|
|
|
Paul vdW
|
Posted: 27 June 2014 05:00 PM |
# 14
|
|
|
Managed to fix my multi-env issues and can now var_dump(ee()). If I’ve got time tomorrow I’ll test issuing other commands via the CLI interface.
Don’t worry that you’ve mentioned Automat:ee, good for ones to know about it. From the looks of things the “CRON type = Module” in Automat:ee is basically doing what this CLI interface is doing, just without the manual steps needed to configure CLI for EE.
|
|
|