Identifies outdated backups and deletes them.
209
Backkeep cleans backups from a directory so that:
Backkeep requires your backups to include a date and an optional time in their filename.
backkeep list: lists all backups having a valid date in their filenamebackkeep keep: lists all backups which are not to be deletedbackkeep diff: lists all backups which are deleted by backkeep removebackkeep remove: removes all outdated backups--directory /backup/postgres: specifies the directory to work on (default: current directory)--keep 10: number of days to keep backups. In this example, all backups older than 10 days are deleted.Run tests:
ruby test/*_test.rb
Content type
Image
Digest
Size
288.1 MB
Last updated
over 10 years ago
docker pull phylor/backkeep