• Resolved Assarbad

    (@assarbad)


    Hi,

    the WordPress blogs I run do not have auto-updates configured or active and in general writing to the webroot is very restricted.

    For the updates this isn’t a big issue as I have scripted the whole process of taking a backup of the DB along with the webroot and even scripted updating plugins and themes.

    However, it seems Site Health takes issue with the fact that the webroot is readonly.

    The scheduled event, wp_privacy_delete_old_export_files, failed to run. Your site still works, but this may indicate that scheduling posts or automated updates may not work as intended.

    Is there a way I could run these scheduled events Site Health mentions from outside WordPress, e.g. as an actual cron job on the server? And in case that is possible, can I also disable the scheduling for these events inside WordPress?

    Thanks and with best regards,

    Oliver

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Do you regularly have export files that need to be deleted? You could write a bash script to remove them, executed from a server cron job. The files are by default in /uploads/wp-personal-data-exports/. The function removes files older than 3 days.

    If you don’t regularly create export files, either delete via FTP or don’t worry about it.

    I don’t know where the default events are scheduled, so I’m unsure if they can be disabled. I’d be slightly surprised if it were possible for all events. For a few there are constants we can define or filters we can hook.

    Thread Starter Assarbad

    (@assarbad)

    Thanks for the response and the details.

    I do not use the export feature at all at this point. Since I am using version control for the files and have sufficient access to export the respective database tables, this is what I prefer, it’s also the way I am used to recover from disaster.

    So it seems this particular item also doesn’t apply to me and I’ll see if the method I was pointed to in another topic can be applied here as well. I’d expect so.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to run wp_privacy_delete_old_export_files manually?’ is closed to new replies.