Bakm: Difference between revisions
Jump to navigation
Jump to search
(→TODO) |
(→TODO) |
||
(One intermediate revision by the same user not shown) | |||
Line 20: | Line 20: | ||
:https://github.com/NovaOrdis/go/blob/master/commands/bakm/doc/TODO.md<br> | :https://github.com/NovaOrdis/go/blob/master/commands/bakm/doc/TODO.md<br> | ||
</blockquote> | </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
TODO
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.