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
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
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…
Here is an image of my backups: https://i.imgur.com/PYedPWw.png
(I was mistaken, I currently have 7 backup sets.)
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
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!
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!