• Hi

    First, thanks for a great plugin.

    There seems to be a small problem where local backups are not being deleted. (I have it configured to retain 10 weeks and I note I have 32 weeks-worth on the webserver).

    It looks to me like the problem is here:

    /*retain behavior*/
    $updraft_retain = get_option(‘updraft_retain’);
    $retain = (isset($updraft_retain))?get_option(‘updraft_retain’):1;
    $backup_history = $this->get_backup_history();
    while (count($backup_history) > $retain) {
    $backup_to_delete = array_pop($backup_history);
    foreach($backup_to_delete as $file) {
    $fullpath = trailingslashit(get_option(‘updraft_dir’)).$file;
    @unlink($file); //delete it if it’s locally available
    }
    }
    update_option(‘updraft_backup_history’,$backup_history);
    /*retain behavior*/

    Should this not be “unlink($fullpath)” not “unlink”($file)?

    I will test this when I get time, but since you know the code, maybe you can get there before me.

    Thanks.

  • The topic ‘[Plugin: Updraft] Local files not deleting’ is closed to new replies.