Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hashes file grows forever #124

Open
michaelwegemer opened this issue Mar 26, 2019 · 2 comments
Open

Hashes file grows forever #124

michaelwegemer opened this issue Mar 26, 2019 · 2 comments

Comments

@michaelwegemer
Copy link

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.

@e-belair
Copy link

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

@sylvainfaivre
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants