wp-media / backwpup

BackWPup - WordPress Backup Plugin
https://backwpup.com
GNU General Public License v2.0
88 stars 35 forks source link

Option "Max Execution Time" isn't saved #4

Closed Tschoepler closed 10 years ago

Tschoepler commented 10 years ago

"backwpup_cfg_jobmaxexecutiontime" is not created in mysql database. Hence, when I change the value in Wordpress it isn't saved. It stays "0". I manually added "backwpup_cfg_jobmaxexecutiontime" to the database with a value of 400. No changes in the wP-backend are saved correctly.

danielhuesken commented 10 years ago

Will the other settings be saved? With WordPress Version and PHP Version is it. I can't reproduce it in moment.

Tschoepler commented 10 years ago

Hi Daniel,

I am not sure but I think the problem had to do with they way I installed the beta. I just threw it in the plugins folder via ftp. I probably should have done this via Wordpress > upload zip, right? It did save the other values. Unfortunately backwpup still fails to restart the process after x seconds correctly. My test job still runs 353 seconds. In the end the log says:

[04-Nov-2013 00:14:52] 1. Trying to create backup archive … [04-Nov-2013 00:14:52] Compressing files with is ZipArchive, please be patient this may take a while [04-Nov-2013 00:15:19] Restart after 27 seconds. Maximum execution time is set to 30 seconds. [04-Nov-2013 00:20:37] WARNING: Job restart due to inactivity for more than 5 minutes. [04-Nov-2013 00:20:37] 1. Try to send backup file to Dropbox … [04-Nov-2013 00:20:37] Authenticated with Dropbox of user Kleine Galerie (admin@kleine-galerie-imberg.de) [04-Nov-2013 00:20:37] 2,30 GB available on your Dropbox [04-Nov-2013 00:20:37] Uploading to Dropbox … [04-Nov-2013 00:20:38] One old log deleted [04-Nov-2013 00:20:38] WARNING: Job has done with warnings in 353 seconds. Please resolve them for correct execution.

I am on Wordpress 3.7.1 with PHP 5.3 I already tried to add max_execution_time to wp-config, php.ini and .htaccess. It just doesn’t seem to do any difference. Any help is much appreciated.

Best Jakob —

Am 03.11.2013 um 11:14 schrieb Daniel Hüsken notifications@github.com:

Will the other settings be saved? With WordPress Version and PHP Version is it. I can't reproduce it in moment.

— Reply to this email directly or view it on GitHub.

danielhuesken commented 10 years ago

Hello Jakob,

I can see in the log that one restart is done but not more. The 353 Seconds is the complete runtime including the restarts.

Did you have replaced the old plugin files? Can you try to only Backup some files and than start the job. Than add more files and do it again. Look if it hangs on a special file or folder.

Tschoepler commented 10 years ago

Hi and thanks for the ideas.

So what I did was the following: I created six jobs. One for each: „database“, „root“, „wp-content“, „themes“, „plugins“ and „uploads“. What I can tell so far is that the first four jobs run just fine. In „wp-content“ I have the folder „uploads“ excluded. Now only „plugins" and „uploads“ are giving me headaches. There are two things I was able to track down.

  1. When selecting „save uploads folder“ in „edit > files“ it will only try to save the folder „sites" within the folder "uploads" as I have a WP network running. But strange enough, my first site stores its media in a folder called „2013“ within „uploads“ not within „sites“. Thus I would like to save the entire folder „uploads“ at once. So what I tried is „save wp-content folder“ and exclude everything but the „uploads“ folder and then add all the temp folders like backwpup’s temp folder etc. to the excluded folders and thus only have the folder „sites“ and „2013“ backed up. No it runs forever, the temp file stops at 31457280 bytes in size. Also backwpup fails to restart every 30 seconds which I set it to. When I exclude the 2013 folder (which is the biggest in size – 150MB) and include all the other folders in „uploads“ backwpup finishes the job within a few seconds.
  2. When I try to backup only the „plugins“ folder and exclude everything but one plugin (no matter which one) the log still reports 230 folders to backup. E.g. when backing up „broken-link-checker“ which only has 247 folders.

I hope you understand what I’m trying to tell you. If anything is unclear, please ask. Thanks in advance.

Jakob —

Am 04.11.2013 um 08:27 schrieb Daniel Hüsken notifications@github.com:

Hello Jakob,

I can see in the log that one restart is done but not more. The 353 Seconds is the complete runtime including the restarts.

Did you have replaced the old plugin files? Can you try to only Backup some files and than start the job. Than add more files and do it again. Look if it hangs on a special file or folder.

— Reply to this email directly or view it on GitHub.

danielhuesken commented 10 years ago

Please reopen if the problem with the last 3.1-rc-1 also.