The minirotate package

[Tags: bsd3, program]

minirotate is minimalistic file rotation utility designed for calling from cron or similar tool.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.0.1, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.2.0, 0.1.2.1, 0.1.2.2
Change logNone available
Dependenciesbase (==4.*), data-accessor (==0.2.1.2), data-accessor-template (==0.2.1.3), directory (>=1), filepath (>=1.1.0 && <1.2.0), mtl (>=1.1.0), old-locale, old-time (>=1), safe (==0.2), split (==0.1.2), template-haskell (>=2.4) [details]
LicenseBSD3
AuthorKrzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com>
MaintainerKrzysztof Skrzetnicki <krzysztof.skrzetnicki+hackage@gmail.com>
StabilityBeta
CategoryUtils
Home pagehttp://tener.github.com/haskell-minirotate/
Source repositoryhead: git clone http://github.com/Tener/haskell-minirotate.git
Executablesminirotate
UploadedFri Feb 19 00:33:50 UTC 2010 by KrzysztofSkrzetnicki
Downloads1071 total (57 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-06-05 [all 1 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for minirotate-0.1.2.0

$ minirotate --help

Usage: minirotate [OPTIONS] SOURCE [SOURCE..] DESTINATION
  -h, -?      --help             show help
  -V          --version          show version
              --show-defaults    show program defaults
  -p PATTERN  --pattern=PATTERN  pattern for final files
  -m          --move             set copy mode to 'move'
  -c          --copy             set copy mode to 'copy'
              --min-files=NUM    minimum number of files to keep
              --max-files=NUM    maximum number of files to keep
              --max-age=NUMSEC   maximum age of files to keep

$ minirotate --show-defaults
Defaults:
	EnvOptions {showHelp_ = False, showVers_ = False, showDefs_ = False, continue_ = True, logger_ = "", verbose_ = False}
	RunOptions {filePattern_ = "{basename}-{modtime %d-%m-%Y-%H_%M_%S}{ext}", copyMode_ = Copy, minimumFiles_ = 3, maximumFiles_ = 20, maximumAge_ = 7776000}

Supported file patterns:
{file}     = takeFileName fp
{basename} = takeBaseName fp
{ext}      = takeExtension fp -- this includes leading dot '.'
{modtime time-format}


TODO:

-- logging
-- verbose mode
-- write docs
-- write examples



See miniorotate.cabal for some more details.