frotate (hackage):   Package maintainers  For package maintainers and hackage trustees  Candidates    frotate stands for "functional rotate", whatever. This is an evolution of the log2rotate's ideas. See also pylog2rotate.  frotate is designed to rotate backups with any balance between retention and space usage.  Instead of rotating backups using some familiar method such as daily, weekly, monthly, and yearly periods, it rotates backups using any periods. Thus "functional".  The idea is simple, the rotation schedule is determined by an integer function. This function gives us a period (number) of days when we must encounter at least one backup or whatever we are rotating. When we use an exponential function, the scheme is similar to the radioactive decay law. When the funtion is simply a constant 1, we don't rotate anything and retain all the backups. If it is 2, we retain each second backup.  With some trivial function we can achieve a well-known dayly-weekly-monthly-yearly scheme.  The frotate command line utility implements only exponential periods with arbitrary base (ensure it is > 1, or have fun otherwise).  Note that when neither --keep nor --delete option is given, the utility prints all intervals with all days in them to standard error. In production you will need to specify --keep or --delete explicitly.  Different modes with the same days:  More or less realistic example when we keep some backups and get new ones, but not every day:
Keywords: math|program|system