Sign inSign up

phylor/backkeep

By phylor

Updated over 10 years ago

Identifies outdated backups and deletes them.

Image
0

209

phylor/backkeep repository overview

Backkeep

Backkeep cleans backups from a directory so that:

  • at least a specified amount of backups are kept
  • kept backups are not older than a specified amount of days

Backkeep requires your backups to include a date and an optional time in their filename.

Installation

Usage

  • backkeep list: lists all backups having a valid date in their filename
  • backkeep keep: lists all backups which are not to be deleted
  • backkeep diff: lists all backups which are deleted by backkeep remove
  • backkeep remove: removes all outdated backups
Options
  • --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.

Development

Run tests:

ruby test/*_test.rb

Tag summary

Content type

Image

Digest

Size

288.1 MB

Last updated

over 10 years ago

docker pull phylor/backkeep