Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

duplicity-remover is a simple script that keeps N full backups and removes all older backups without the need for the PGP secret key.

Notifications You must be signed in to change notification settings

creinders/duplicity-remover

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

duplicity-remover

duplicity-remover is a simple script written in Python that keeps N full backups and removes all backups that are older than that. You can use it to clean up duplicity backup files without having the PGP secret key.

Why do I not use the built-in function of duplicity? I download the encrypted backup to a Raspberry PI and duplicity remove-all-but-n-full requires the PGP secret key. For security reasons I don't want to have the key on the Raspberry so that's why I wrote this script.

Testet on Python 2.7.11

##Example

./duplicity-remover.py --remove-all-but-n-full 3 --force /backups/files

will keep 3 full backups and removes all older full and incremental backups. The '--force' option will delete the files. To try this script, you can leave it out.

About

duplicity-remover is a simple script that keeps N full backups and removes all older backups without the need for the PGP secret key.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages