Bakm: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * projects =Overview= bakm (Backup Manager) A Linux command primarily intended to be executed by cron and keep the content of a backup arc...")
 
 
(6 intermediate revisions by the same user not shown)
Line 12: Line 12:


<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
:<br>https://github.com/NovaOrdis/go/commands/bakm<br><br>
:https://github.com/NovaOrdis/go/tree/master/commands/bakm<br>
</blockquote>
</blockquote>


=TODO=
=TODO=


doc/Event Development.docx TODO section.
<blockquote style="background-color: AliceBlue; border: solid thin LightSteelBlue;">
:https://github.com/NovaOrdis/go/blob/master/commands/bakm/doc/TODO.md<br>
</blockquote>
 
=Release 1 In-Line Help=
 
<pre>
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).
</pre>
 
=Release Procedure=
 
* Format with <tt>gofmt</tt>:
 
<pre>
format
</pre>
 
* Update the repository
 
<pre>
git add .
git commit -m "release 1"
git push
</pre>
 
* Build on the target platform
 
<pre>
git pull
build
</pre>
 
The executable will be found under <tt>./output</tt>.

Latest revision as of 05:17, 5 April 2016

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.