Linux SysAdmin & DevOps

BackupPC - Dlete backups and clean pool

I am using BackupPC as a backup solution for my linux box and recently modifying some settings I got a huge backup instead of the regular one. So I have deleted only those files that were extra… But the space was still occupied on my hard disk even if the files have been deleted.

I did a little google reseach and I came up with a little solution. If you delete any files from your backuppc backup folder, in order to claim your free space (backuppc keeps the pool files even if you deleted files from backup) you have to run this:

/usr/share/BackupPC/bin/BackupPC_nightly 0 255

The command above will reconstruct your pool file and at the end you have claimed your free space.