Public | Automated Build

Last pushed: a year ago
Short Description
Identifies outdated backups and deletes them.
Full Description

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
Docker Pull Command
Owner
phylor
Source Repository

Comments (0)