Giter Site home page Giter Site logo

backwpup's People

Contributors

2ndkauboy avatar cuongdcdev avatar daankortenbach avatar danielhuesken avatar devbanana avatar dinamiko avatar jartes avatar madaritech avatar mattn avatar nullbytes avatar pedro-mendonca avatar tfrommen avatar widoz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backwpup's Issues

wp-cron job seems to be sucking server GPU

A client was having problems with high amounts of GPU being consumed by wp-cron.php on their site. In a effort to test what was going on, I ran several wp-cron jobs, and the phone_home cron from this plugin returned a nonce error. I disabled the plugin, and GPU usage dropped dramatically (see attached). Not sure what or how, but it seems like that nonce error was an issue for sure. My bet is that the error occured and it kept trying to fire over and over.

Just wanted to make you aware of the issue...let me know if you need any further information.

Running plugin v3.5.1 on WP v4.9.6, server is running php 7.0.6

image 2018-06-12 at 10 51 24 pm

Change Admin bar menu item to default:off

In settings uncheck the box and hit save, but it just refreshes and keeps the old setting. Please let me know how to remove BackWPup from the admin bar. Note, this is in multisite and single site

I had to wipe out line 99 in backwpup.php, for now, but surely the next update will overwrite that. It would be great if the admin bar menu were an option with a default of OFF, but certainly the inability to change the state is bug at this point.

Daniel said he was willing to change Admin bar menu item to default:off and then check to see if the toggle worked properly at that point.

Original report filed at: https://wordpress.org/support/topic/cannot-remove-backwpup-from-admin-bar?replies=7#post-8525289

Where is the latest code?

I was wondering where the latest code for the plugin is hosted, to possibly be able to make PRs if need be.

Fatal error Executing Routine

I'm using backwpup plugin in a wordpress multisite installation, with the following configurations:
-> Database Backup;
-> Files Backup;
-> WordPress XML Export;
-> Plugins List.
-> Backup to a folder and to a dropbox account;
-> Execution with Wp-Cron.

OBS: Both Wordpress install and BackwpUp plugin are in the latest version. I use the plugin iThemes security to keep my websites secure.

Suddenly it stopped working giving a whitescreen with the following error:
Fatal error: Can't use function return value in write context in /home/.../public_html/wp-content/plugins/backwpup/inc/class-destination-ftp.php on line 285

Can someone give help? Thanks!

3.4.2 breaks archive name rotation

After update from 3.4.1 to 3.4.2 the mechanism with the archive name seems to be broken. Snapshot from task settings:

Archivename: backwpup_x3fgib1mp_LF_%Y-%m-%d_%H-%i-%s
Note: In order for backup file tracking to work, the archive name must begin with backwpup_ioafrg0sh_.
Preview: backwpup_1fswoadloh_LF_2017-09-30_21-10-34.zip

When I reload the page (F5) the values change again:

Archive name: backwpup_gc3safabl_LF_%Y-%m-%d_%H-%i-%s
Note: In order for backup file tracking to work, the archive name must begin with backwpup_25ixuhgiyp_.
Preview: backwpup_1fswoaefb5_LF_2017-09-30_21-17-24.zip

When I hit F5 again values change again, etc.

On 3.4.1 Archive name, Note and Preview all had the same random code. In 3.4.2 they are different every and I think that that is not how it is supposed to be.

Tweak

I don´t use to use the backwpup dashboard all the time, just when it is necesary. It will not be better if the menu is inside of tools?

captura de pantalla 2017-02-14 a las 11 57 52

thanks

"tar" long filename support

BackupWP_Create_Archive::tar_file should support the GNU long filename extension (instead of being limited to 99 characters). Using the "zip" format as a workaround is not feasible for image backups, as it takes a very long time without any benefits (double compression).

Backup to Azure Blob Storage failing authentication

Using the same Account Name and Access Key that I've had working perfectly for years, suddenly since November 13, 2017, I'm getting this error next to Container selection under Blob container in the MS Azure access keys section.

Fail: Code: 403 Value: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. details (if any): <?xml version="1.0" encoding="utf-8"?><Error><Code>AuthenticationFailed</Code><Message>Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:5e8e0033-001e-002c-6c6e-61db3e000000 Time:2017-11-19T19:41:13.2773228Z</Message><AuthenticationErrorDetail>Request date header too old: 'Sun, 19 Nov 2017 19:25:54 GMT'</AuthenticationErrorDetail></Error>.

Is this a change on Azure's end that BackWPup isn't accommodating, or vice-versa?

Failed opening required autoload_real.php

The latest version, 3.5.0 broke one of the websites I'm maintaining.

I am not sure what's happening but the log file shows that error:

[16-May-2018 22:23:55 UTC] PHP Fatal error: require_once(): Failed opening required '/home/[user]/public_html/wp-content/plugins/backwpup/vendor/composer/autoload_real.php' (include_path='.:/opt/alt/php71/usr/share/pear') in /home/[user]/public_html/wp-content/plugins/backwpup/vendor/autoload.php on line 5

Allow PathStyle for S3

Using minio as an S3 provider, the connection to the bucket fails, because the PathStyle cannot be set to true.

Using the direct IP of my minio instance, BackWPup tries this:
http://bucket.1.2.3.4
instead of this:
http://1.2.3.4/bucket

Would be nice to have this as an option 👍

error notification email

Good afternoon!
The email I'vve got is one long line.

Could you wrap span+samp in a p element?

ERROR: Could not generate a WordPress export file.

I've been getting the following error for a long time now:

[27-Jun-2014 14:21:32] Added "wp-config.php" to backup file list
[27-Jun-2014 14:21:32] 1767 folders to backup.
[27-Jun-2014 14:21:32] 1. Trying to create a WordPress export to XML file …
[27-Jun-2014 14:21:41] ERROR: Could not generate a WordPress export file.

Here's my server info:

WordPress version 3.9.1
BackWPup version 3.1.2
PHP version 5.4.26
MySQL version 5.5.37-cll
cURL version 7.24.0

Any ideas?

backwpup_jobs option is corrupted when get_site_option fails

Hi!

Sometimes a job may end with DB error:

[08-Jul-2017 20:00:07] Uploading to Dropbox …
[08-Jul-2017 20:00:37] WARNING: Error while sending QUERY packet. PID=23698
[08-Jul-2017 20:00:37] Backup transferred to /SiteName/backwpup_1234567_2017-07-08_20-00-03.zip
[08-Jul-2017 20:00:38] One old log deleted
[08-Jul-2017 20:00:38] WARNING: Job finished with warnings in 35 seconds. Please resolve them for correct execution.

If this has happend, the backwpup_jobs option contains only the current job id with only two fields inside, lastbackupdownloadurl & lastruntime. All other jobs and all other fields of the current job are deleted.

I have to restore the option manually, to keep backing up. Facing the issue quite often, once a day or so.

PHP Error: $this can not be used in static methods

When opening my development workspace that happens to have BackWPup in it (as it is a clone of a live site) I realized that VS Code is complaining about a use of $this in a static function in BackWPup. See the full error below:

{
	"resource": "app/public/wp-content/plugins/backwpup/inc/class-job.php",
	"owner": "_generated_diagnostic_collection_name_#0",
	"code": "undefined",
	"severity": 8,
	"message": "$this can not be used in static methods.",
	"source": "php",
	"startLineNumber": 1165,
	"startColumn": 5,
	"endLineNumber": 1165,
	"endColumn": 10
}

From my own experience I’m pretty sure that to fix this you need to make the log() function a static. Within static functions you simply cannot use $this, as those are two different scopes/modes of the code.

Anyhow, I thought that I’d mention this, in case it is a real problem that you want to fix.

S3 Bucket “s3://bucket-name” does not exist!

Hello,

I am using amazon s3 to store backups using backwpup, But I am receiving errors while running job “S3 Bucket “s3://os-website-backup” does not exist!”

My credentials are correct & verified. Also tried by changing region. but no luck.

What would be the issue?

Thanks in Advance ..!!

Log file incomplete

Hi @danielhuesken ,

I have BackWPup in several WordPress installs, a few days a go I've came across something new.
I installed the plugin for the first time on a site, and it installed the current v3.2.4.
After the settings roundup and creating the first job with the default Normal (translated) log, the log just write the first 4 lines, the last one is "type is archive". After that, nothing. If I change the type of log to debug it writes a perfeclty complete log.

As I'm used to Normal log being ok, I've compared to other WordPress installs. They were working perfect. But one thing bothers me, it's the same version, current version of BackWPup.

Probably the issue is not recent, somehow it was masked by old settings in my database, because after I've changed from Normal to Debug and then from Debug to Normal again, in the WordPress installs that were working fine with Normal logs, it just stopped working, exactly as the recently new install where I found this issue.

I've checked the Normal translated and not translated, and the problem is the same.

A final suggestion, to be a little more clear, maybe there could be added a line in the header of the log mentioning wich mode it is made in.
ex.:
[INFO] Log Level: Normal (translated)

Best regards

Downloadable font: Bad sTypoLineGap

Here what Firefox say:
downloadable font: OS/2: Bad sTypoLineGap, setting it to 0: -64 (font-family: "backwpup" style:normal weight:normal stretch:normal src index:1) source: /wp-content/plugins/backwpup/assets/fonts/backwpup.ttf

PHP Parse Error in 3.5 Broke Site

Updated to 3.5 and it broke my site. All pages returned 500 errors, including admin pages, until I disabled the plugin from the console. Log shows the following:

PHP message: PHP Parse error: syntax error, unexpected '[', expecting ')' in /var/www/website/wp-content/plugins/backwpup/vendor/guzzlehttp/promises/src/functions.php on line 45" while reading response header from upstream

I'm running PHP 5.3.10.

Not able to connect to Azure storage account if it is in "resource manager" deployment model

Background: in Azure there are currently two deployment model - Classic and Resource manager.

With 3.3 version, everything is fine if the Azure storage account is in "Classic" model. However, if it is of "Resource manager" model, this error message is shown:

Fail: Code: 400 Value: The value for one of the HTTP headers is not in the correct format. details (if any): InvalidHeaderValueThe value for one of the HTTP headers is not in the correct format. RequestId:89b387c1-0001-0020-2038-8ef721000000 Time:2016-04-04T06:10:24.9635417Zx-ms-version2012-02-12.

Multiple Backups on WP Multisites

My WP Multisite creates multiple backups since the following change:

a4fb0a2#diff-29b55d7c830b04ca5f3b553cfcd9f78a

And as far as I can see it: is_main_network() is always true for every site of my multisite. And so the backup cron is executed by every subpage.

This should work:
if ( ! is_main_site() || ( ! is_main_network() && ! is_main_site() ) ) { return; }

Or:

if ( ! is_main_network() ) { return; }

if ( ! is_main_site() ) { return; }

Necessary/good to test for wp-compat on frontend?

I just saw in Query monitor on one of my sites:

Query Abruffunktion Komponente Zeilen Zeit
SELECT option_value FROM mok_options WHERE option_name = 'backwpup_cfg_hash' LIMIT 1 BackWPup_System_Tests->is_wp_version_compatible() wp-content/plugins/backwpup/inc/class-system-tests.php:33 BackWPup::get_plugin_data() wp-content/plugins/backwpup/backwpup.php:190 get_site_option() wp-includes/option.php:1109 get_network_option() wp-includes/option.php:1244 get_option() wp-includes/option.php:98 Plugin: backwpup 1 0,0646

Is it really necessary to test that on the frontend?
Or is it limited to logged in and admins?

Split backup file into chunks

I'm running into an issue where the hosting has file size limitations, so a complete backup cannot be made in one go.

It would be really great if the compressed backup could be chunked into multiple files.
The file size of each chunk could be defined in the settings.

wp-cron.php was not found on this server

I get the following error:

WP-Cron url: https://www.jaimiorganiseert.nl/wp-cron.php
Server self connect: Not expected HTTP response:
Status-Code: 404
Date: Wed, 20 Dec 2017 08:30:09 GMT
Server: Apache
Content-length: 328
Content-type: text/html; charset=iso-8859-1
Content:

<title>404 Not Found</title>

Not Found

The requested URL /wp-cron.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

However: the wp-cron.php is in place and is accepted if called with the URL itself.

What could this be? Thank you!

Temporary split files are filling the uploads folder and the server HDD

In Backwpup 4.3.5 backup files are generated in the uploads folder which are not cleaned up. Last night this crashed my one of my sites because the HDD was full because of those files.

The backup file limit is 1 but there are multiple of these files.

backwpup

File permission of the folder is 755

fatal error

require_once dirname( FILE ) . '/vendor/inpsyde/phone-home-client/inc/autoload.php';// L147

Delete all the plugin files and data by unistall.

The roles and maybe other data and files remaind in the site once we unistall the plugin. Is not possible to have clean all the backwpup data or content if we not longer whant to use the plugin or if we need to test in a clean enviroment?

thanks

Backup before automatically update

Backup automatisch erstellen, bevor das WP Autoupdate, seit 3.7 im Core, los läuft, um so den letzten Stand im Backup zu haben.

add_filter( 'schedule_event', 'my_backup_scheduler', 10, 1 );
function my_backup_scheduler( $event ) {
    // 'wp_maybe_auto_update' is the cron hook for the auto update process
    if ( 'wp_maybe_auto_update' !== $event['hook'] )
        return;

    wp_schedule_single_event( $event['timestamp'] - 5 * MINUTE_IN_SECONDS, 'my_backup' );
}


add_action( 'my_backup', 'my_backup' );
function my_backup() {
    // BackWPup Workflow
}

Error message: SSL certificate problem, verify that the CA cert is OK

If i will try to do a "Teststart" on BackWPup Version 3.1.1 with define(FORCE_SSLLOGIN, true) in wp-config.php, i get the following Error:

Der HTTP Antwort Test bekommt diesen Fehler "SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"

The Server is on Ubuntu 10.04 LTS with PHP 5.3.2. I can't update to anewer Version. Do you know any Workaround? Is there anything, i can manualy edit in some file?

Excessive transient writes

Query Monitor catches 10 transient writes from the plugin every page load with toolbar.

Call stack:

set_transient()
wp_rand()
wp_generate_password()
WP_Session_Tokens->create()
wp_generate_auth_cookie()
BackWPup_Job::get_jobrun_url()
BackWPup_Adminbar->adminbar()
do_action_ref_array('admin_bar_menu')
wp_admin_bar_render()
do_action('in_admin_header')

It looks like it generates same cookies over and over, so might be better reused.

Bug report for free version of BackWPup

Hello,
I know I have the free versions but still would like to report a bug..

After making a backup to FTP (Netherlands GMT + 2, and FTP displaying local time), between the log and and the backup timestamps displayed in wordpress there is a two hours difference.
The timestamp displayed for the log is the correct one, the timestamp displayed for the backup is two hours in advance..

hope with this remark you can improve your good working plugin..

regards,

Marcel Nijland

Copy.com Integration

Hey,
I really like backwpup but unfortunately I had to choose a different one because you only have a dropbox integration in the free version and no copy.com. Copy.com offers 15 GB for free which is a lot compared to dropbox.
Perhaps you could integrate copy.com for the next version which would be great.
Thanks.

running a job white screens

Every time I run a job, it white screens and I get a log like the one below. The job screen remains white and will not be viewable until I remove the backup-xxxx-xxxxxxx directories. After doing this I can view the jobs page again, but if I run a job it white screens again.

There are no Nginx errors in the log and access has the requests being successfully completed.

Please let me know if you need any more information to debug this issue.

Example Log

[INFO] BackWPup version 3.1.2; A project of Inpsyde GmbH
[INFO] WordPress version 3.9
[INFO] Blog url: http://example.com/
[INFO] BackWPup job: main-dropbox-backup; DBCHECK+DBDUMP+FILE+WPEXP+WPPLUGIN
[INFO] BackWPup no automatic job start configured
[INFO] BackWPup job started manually
[INFO] PHP ver.: 5.5.99-hiphop; srv; Linux
[INFO] Maximum PHP script execution time is 0 seconds
[INFO] MySQL ver.: 5.5.37-0ubuntu0.12.04.1
[INFO] curl ver.: 7.22.0; OpenSSL/1.0.1
[INFO] Temp folder is: /var/www/public/wp-content/uploaded/backwpup-xxxxxx-temp/
[INFO] Logfile is: /var/www/public/wp-content/uploaded/backwpup-xxxxxx-logs/backwpup_log_cdf88a_2014-04-24_11-31-21.html
[INFO] Backup type is: archive
[INFO] Backup file is: /var/www/public/wp-content/uploaded/backwpup-xxxxxx-temp/backwpup_cdf88a_20140424_113121.tar.gz

Azure backup stopped working (InvalidQueryParameterValue: blockid, not base64 string)

My daily backups stopped working around May 19 (might have been a few days slow on the update.)

ERROR: Microsoft Azure API: Fail: Code: 400 Value: Value for one of the query parameters specified in the request URI is invalid. details (if any): <?xml version="1.0" encoding="utf-8"?><Error><Code>InvalidQueryParameterValue</Code><Message>Value for one of the query parameters specified in the request URI is invalid. RequestId:423e14c8-701e-00my-guid-abcdef000000 Time:2018-05-22T17:44:09.4920166Z</Message><QueryParameterName>blockid</QueryParameterName><QueryParameterValue>1844a0bfe3bmyguid12345605222718b000001</QueryParameterValue><Reason>Not a valid base64 string.</Reason></Error>.

I am using a classic storage account (because last I checked, the RM storage account wasn't supported by backwpup.)

Someone reported this issue on the wordpress.org support forum:
https://wordpress.org/support/topic/azure-backup-fails/

Error: Call to a member function close() on null

ERROR: Exception caught in Error: Call to a member function close() on null

All sites using 3.5.0 since upgrade are reporting the above error when trying to compress the individual parts (XML, WXR, pluginlist etc.) prior to final archiving - disabling that and saving the Job seems to resolve this. (I actually don't see the benefit in compressing individual files prior to archiving the whole lot - it just adds time to the backup process for no reason.)

Also, when I do a manual backup I notice the "Running for: 524 seconds" appears on the wrong job in Job list (I always have a separate DB and a Full backup in the list) and is also reporting the wrong length of time. Additionally, the time it states under the "Last Run" heading when you click a new job run is incorrect, and then the time the progress bar says it took (84secs) is different than what it saves under the "Last Run" heading (May 21, 2018 at 3:21 pm Runtime: 136 seconds) - ie. it updates the job datetime but not the run time.

Use wp_mail for sending emails

It would be great if you would use wp_mail for all email deliveries, as I'm using a PGP encryption plugin that hooks into it to send encrypted emails.
This works well for the backup logs, as that's the only place that uses wp_mail.
I saw in your code that you're using Swift_Mailer for all other email deliveries.

Not sure it's possible for you to change everything around to not use Swift_Mailer and rely only on wp_mail, but if you could at least add a filter or hook to allow some modification of the email content before it is sent, I could make a mini plugin for myself to use that.

Or is there any other way to get BackWPUp to send encrypted emails?

Thanks!

Option "Max Execution Time" isn't saved

"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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.