Backup-Manager icon indicating copy to clipboard operation
Backup-Manager copied to clipboard

Hashes file grows forever

Open michaelwegemer opened this issue 6 years ago • 2 comments

I use incremental backup on Linux. The backup files delete on schedule but the hashes file grows forever. It had entries dating back to 2017. I manually edited and removed entries to February of 2018. The hashes file should have entries removed for files that are deleted.

michaelwegemer avatar Mar 26 '19 17:03 michaelwegemer

+1 should be great that the file get purge of removed files

e-belair avatar Jan 15 '20 14:01 e-belair

This can be done with a small patch on /usr/share/backup-manager/files.sh, line 370. Add both lines starting with sed :

    # Then actually remove the files
    for archive in `cat $list`
    do
        info "Removing archive \"\$archive\"."
        sed_value=`basename $archive`
        sed -e "/$sed_value/d" -i "${directory}/`hostname`-hashes.md5"
        rm -f $archive
    done
    rm -f $list

sylvainfaivre avatar Mar 22 '22 10:03 sylvainfaivre