Bakm

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

bakm (Backup Manager)

A Linux command primarily intended to be executed by cron and keep the content of a backup archive directory under control. Written in Go.

GitHub

https://github.com/NovaOrdis/go/tree/master/commands/bakm

TODO

https://github.com/NovaOrdis/go/blob/master/commands/bakm/doc/TODO.md

Release 1 In-Line Help

Utility to clean a directory of old backup files. It removes as many files as necessary
(possibly none)  to leave the newest 'keepCount' files in the directory.   If less than
'keepCount' files are found in the directory, none is removed.

Usage:
		bakm [-keep=<keepCount>] <target-directory>

		bakm -help|--help|help|-h

Example:

		bakm -keep=10 /opt/backup

Options:

	-keep - specifies the number of files to keep in the directory (default 10).

Release Procedure

  • Format with gofmt:
format
  • Update the repository
git add .
git commit -m "release 1"
git push
  • Build on the target platform
git pull
build

The executable will be found under ./output.