minirotate: Minimalistic file rotation utility

[ bsd3, program, utils ] [ Propose Tags ]

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

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,,,,
Dependencies base (>=4 && <5), data-accessor (==, data-accessor-template (==, directory (>=1), filepath (>=1.1.0 && <1.2.0), mtl (>=1.1.0), old-locale, old-time (>=1), process (>1), safe (==0.2), split (==0.1.2), template-haskell (>=2.4) [details]
License BSD-3-Clause
Author Krzysztof Skrzetnicki <>
Maintainer Krzysztof Skrzetnicki <>
Category Utils
Home page
Source repo head: git clone
Uploaded by KrzysztofSkrzetnicki at 2010-03-02T19:03:38Z
Distributions NixOS:
Reverse Dependencies 1 direct, 0 indirect [details]
Executables minirotate
Downloads 5331 total (1 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-30 [all 7 reports]

Readme for minirotate-

[back to package description]
$ minirotate --help

  -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
	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}


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

See miniorotate.cabal for some more details.