WordPress.org

Ready to get started?Download WordPress

Forums

Backup
No backups since update! (21 posts)

  1. shirleee
    Member
    Posted 2 years ago #

    Hi!

    Since the update to 2.31 no more backups are created.
    Inside the randomized backup folder there are several .log files, one for each backup attempt. Yet, none of them contains anything except for a header.
    The backup folder belongs to my user and has permissions set to 757, all the log files are 644 and belong to www-data.
    There are no relevant error messages in my logs.

    What can I do to narrow down the problem?

    http://wordpress.org/extend/plugins/backup/

  2. shirleee
    Member
    Posted 2 years ago #

    ... it should of course say v2.1.3 instead of v2.31.

  3. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You should change the owner of the backup folder to www-data.
    The php error log should contain info about why backups aren't getting created.

  4. shirleee
    Member
    Posted 1 year ago #

    You were right, of course, there is a PHP error in the log that had slipped my attention.

    PHP was complaining about a missing function called "curl_version()", even though I had curl disabled in the "Enabled transports" settings.

    Installing the curl extension fixed the problem. But you might want to make the call to "curl_version()" dependent on the state of the curl checkebox.

    Thanks for your assistance!

  5. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    But you might want to make the call to "curl_version()" dependent on the state of the curl checkebox.

    You are right, I will fix that.

  6. now4dw
    Member
    Posted 1 year ago #

    Hi,

    The big question...

    I have a multisite installation. Will your tool allow me to back up the entire site in a single backup or will I need to backup each site separately?

    Thanks.

  7. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    I did not test the plugin against a multisite setup, but I think it should work.

    You should try it and then tell us your results.

  8. shirleee
    Member
    Posted 1 year ago #

    Hi,

    I hate to keep bothering you, but I'm not quite there yet. Backups are created sucessfully on my server now, but the upload to Google Drive fails.
    I'm getting a

    Received response code '400 Bad Request' while trying to upload a file chunk.

    This consistenly happens when the very last chunk is being uploaded (according to the progress bar). I've played around with the chunk size settings and timeouts, and I've revoked/re-authenticated towards Google several times. None of that has resolved the problem.
    I also tried all the transport options one by one. That has had no effect either, except that upload speed is extremely slow without curl enabled.

    Any suggestions?

  9. shirleee
    Member
    Posted 1 year ago #

    If it's any help, I got plenty of these in the debug.log:

    PHP Notice: Undefined index: status in /crypt/srv/www/htdocs/xxxx/wp-content/plugins/backup/backup.php on line 1410

    ... and a couple of those:

    PHP Notice: Undefined variable: text_domain in /crypt/srv/www/htdocs/xxxx/wp-content/plugins/backup/backup.php on line 1221

  10. shirleee
    Member
    Posted 1 year ago #

    No clue?

  11. haider242
    Member
    Posted 1 year ago #

    i want to install pagination in below my home page how would i do?

  12. Jason
    Member
    Posted 1 year ago #

    ^^ wut i think you are lost sir

    [Please stop posting in uppercase. It's the electronic equivalent of shouting and is considered quite rude. Post de-capped.[/em>

  13. Jason
    Member
    Posted 1 year ago #

    @shirleee

    PHP Notice:

    Those aren't really effors, the varibles just are not declared. It's very common and doesn't impact performance or functionality. In other words, it's nothing to be worried about.

    Received response code '400 Bad Request' while trying to upload a file chunk.

    95% of the time this is because of a problem on with your connection being too slow and timing out. Use small chunks, and if you are on shared hosting, there's prolly nothing you can do about it. It's just too slow to send the chunk before the script times out.

    Try .5 MB chunk with a 60 second timeout.

  14. WPwebbouw
    Member
    Posted 1 year ago #

    Backup is working here on my online development server (shared hosting), using the latest v2.1.3

    However, I have noticed another reason why scheduled backups don't work.
    I often install Backup in an early stage of development in order to have automatic backups during development.

    When I work on a new website for a client I often protect the access by setting a http password protection in .htaccess and an accompanying .htpasswd.
    I have found this prevents Backup from performing scheduled backups.

    Would be nice if this could this be solved.

    e-

  15. hel.io
    Member
    Plugin Author

    Posted 1 year ago #

    @WPwebbouw,

    You can set up a cron job and use something like this http://username:password@example.com/?backup=43g34g3g5t for the URL.

  16. Jason
    Member
    Posted 1 year ago #

    ^^ Good answer!

  17. WPwebbouw
    Member
    Posted 1 year ago #

    Hi Sorin,

    Thanks! I managed to find the unix syntax for setting up this cron job in Direct Admin.

    /usr/bin/wget -O /dev/null -q http://user:password@mydomain.com/?backup=UIYoBLUJrQ0A

    This works with a site that is .htpasswd protected

    Without protection the syntax is
    /usr/bin/wget -O /dev/null -q http://mydomain.com/?backup=UIYoBLUJrQ0A

    side note:
    For unix/linux folks this was all obvious I guess. For us simple wordpress php html css windows mac hacking coders that unix/linux stuff is abacadabra and good beginner tutorials are hard to find :)

  18. shirleee
    Member
    Posted 1 year ago #

    @Jason

    Received response code '400 Bad Request' while trying to upload a file chunk.
    95% of the time this is because of a problem on with your connection being too slow and timing out.

    Thanks for your suggestion. Reducing the chunk size didn't help, and honestly, I don't think my connection is the problem here. In the log entries below you see that backups run smoothly and transfer rather fast to my Google Drive. However, the last chunk seems to break the transmission. This is 100% repeatable and happens for whatever parameter settings (chunk sizes, timeouts, etc.).

    Another thing that's bugging me and that might be related is that Backup doesn't respect the number of backups to keep locally. I've chosen 10, but older backups persist.

    2012-09-25	13:11:43	NOTICE	Environment: Backup 2.2; WordPress 3.4.2; PHP 5.3.2-1ubuntu4.17; SAPI apache2handler; OS Linux; ZIP 1.9.1; CURL 7.19.7; Time limit 60s; Memory limit 256M
    2012-09-25	13:11:43	NOTICE	Attempting to dump database.
    2012-09-25	13:11:44	NOTICE	The database dump was completed successfully in 0,324 seconds.
    2012-09-25	13:11:44	NOTICE	Attempting to create archive 'XXXXXXXXX-xxxxxx.zip'.
    2012-09-25	13:11:47	NOTICE	Successfully archived 1.538 files in 3,674 seconds. Archive file size is 30,98 MB.
    2012-09-25	13:11:48	NOTICE	Attempting to upload archive to Google Drive.
    2012-09-25	13:11:48	NOTICE	Uploading file with title 'XXXXXXXXX (xxxxxx)'.
    2012-09-25	13:13:05	ERROR	Received response code '400 Bad Request' while trying to upload a file chunk.
    2012-09-25	13:13:05	WARNING	The upload process timed out but can be resumed. Managed to upload 98.45% of the file. The upload speed was 412 kB/s.
  19. sebp99
    Member
    Posted 1 year ago #

    I have the same: 100% repeatable now also when doing manual backup using the little button, so not to do with connection speed. The chunk that fails is always the last one, ie I have chunk size of 0.5MB and it is the last one (the one that is less than 0.5MB) that fails.

  20. shirleee
    Member
    Posted 1 year ago #

    Seems like sebp99 and myself are lost here with noone able to help us resolve this issue.

    Anyone?

  21. pisymbol
    Member
    Posted 1 year ago #

    Me too. Looks like since update, no backups are being uploaded to Google Drive. I have no idea why since the last log message I See is:

    2012-11-01 13:33:46 NOTICE Uploading file with title 'XXXXX (mct9lb)'.

    (XXXX is just my website's name)

    But it never appears on my drive. Worked for months with no issue until now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.