• Resolved rubinstein

    (@rubinstein)


    Hi,

    I have two WordPress installations with UpdraftPlus.

    On one I have a corresponding log file with every backup that was created.

    On the other installation, I only have the log file for the latest backup. The other log files got deleted.

    Now: Maybe I’m blind, but I can’t find a setting where to control this behavior–if there is such a setting at all.

    Is there a default log retention behavior?

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor aporter

    (@aporter)

    Hi,

    There is no front end option to control when logs are deleted.

    Bt default they are removed every 40 days, but you can change this your self using the WordPress filter ‘updraftplus_log_delete_age’

    Best Wishes,

    Ashley

    Thread Starter rubinstein

    (@rubinstein)

    Hi Ashley @aporter,

    Thank you for your answer.

    When the default is 40 days then it’s strange that I only have 1 log file (but lots of backups) with one of my installations.

    How can I reset the plugin so that I have up to 40 days of log files?

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Sorry for the delay.

    Theres no way to reset the plugin, it should automatically handle cleaning up old log files.

    If you want to keep all your log files then you will need to use the above mentioned filter to set the time you want to keep the log files for e.g set the time to keep them to something very high.

    Best Wishes,

    Ashley

    Thread Starter rubinstein

    (@rubinstein)

    Hi Ashley @aporter,

    Could this be a bug because I only have 1 log file but–for example today–4 backup files? If there’s a limit of 40 log files, then I should have 4 corresponding log files, right? Or maybe I don’t understand it fully…

    Thread Starter rubinstein

    (@rubinstein)

    Here is an image of my backups: https://i.imgur.com/PYedPWw.png

    (I was mistaken, I currently have 7 backup sets.)

    Thread Starter rubinstein

    (@rubinstein)

    Today I don’t have any log files at all, as you can see here:

    View post on imgur.com

    This is a screenshot of public_html/wp-content/updraft:

    View post on imgur.com

    Plugin Contributor aporter

    (@aporter)

    Hi,

    Sorry about the delay.

    I’m not sure why log files are being deleted, theres no code in UpdraftPlus that should be doing that.

    You could try to reinstall the plugin and also turn on the “report” facility, it will email you the log files and that’ll include details on whether any past logs were deleted.

    Perhaps it’s something external, e.g. hosting company, though, that sounds unlikely (even really big logs aren’t that huge compared to all the other stuff making up a website).

    Best Wishes,

    Ashley

    Thread Starter rubinstein

    (@rubinstein)

    Hi Ashley,

    I’ve deactivated UpdraftPlus and deleted the 2 corresponding WP cron entries, but the directory and 1 log file in it are still there, so we’ll see if it’ll stay that way.

    Something resets the directory and the files in it daily. Yesterday it was at 1:17 am, and today it was at 7:29 am. Which is odd, as cron jobs are triggered every 5 minutes (real cron job).

    Thanks!

    Thread Starter rubinstein

    (@rubinstein)

    Hi Ashley @aporter,

    You were right: It’s my webhosting company that is deleting the directory, they confirmed it today. They said they’ll look into retaining the log files.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘How many log files does UpdraftPlus usually keep?’ is closed to new replies.