perl-Date-RetentionPolicy - Prune a list of dates down to the ones you want to keep

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Date-RetentionPolicy-0.01-alt1.noarch.rpm
Package name perl-Date-RetentionPolicy
Package version 0.01
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 30.03 KB
Installed size 30.03 KB
Often when making backups of a thing, you want to have more frequent snapshots
for recent dates, but don't need that frequency further back in time, and want
to delete some of the older ones to save space.
The problem of deciding which snapshots to delete is non-trivial because
backups often don't complete on a timely schedule (despite being started on
a schedule) or have discontinuities from production mishaps, and it would be
bad if your script wiped out the only backup in an interval just because it
didn't look like one of the "main" timestamps.  Also it would be bad if the
jitter from the time zone or time of day that you run the pruning process
caused the script to round differently and delete the backups it had
previously decided to keep.
This module uses an algorithm where you first define the intervals which
should retain a backup, then assign the existing timestamps to those intervals
(possibly reaching across the interval boundary a bit in order to preserve
a nearby timestamp; see the reach_factor manpage) thus making an intelligent decision
about which timestamps to keep.


Package Version Architecture Repository
perl-Date-RetentionPolicy - - -


Name Value
/usr/share/perl5 -
perl( -
perl(DateTime/Format/ -
perl( -
perl(Scalar/ -
rpmlib(PayloadIsLzma) -


Name Value
perl(Date/ = 0.010
perl-Date-RetentionPolicy = 0.01-alt1


Type URL
Binary Package perl-Date-RetentionPolicy-0.01-alt1.noarch.rpm
Source Package perl-Date-RetentionPolicy-0.01-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Date-RetentionPolicy rpm package:
    # sudo apt-get install perl-Date-RetentionPolicy



See Also

Package Description
perl-Date-Roman-1.06-alt1.noarch.rpm perl module Date-Roman
perl-Date-Roman-scripts-1.06-alt1.noarch.rpm Date-Roman scripts
perl-Date-Saka-Simple-0.26-alt1.noarch.rpm Represents Saka date
perl-Date-Say-Czech-0.05-alt1.noarch.rpm perl module Date-Say-Czech
perl-Date-Simple-Month-0.02-alt1.noarch.rpm a month of Date::Simple objects
perl-Date-Simple-Range-1.1-alt1.noarch.rpm A range of Date::Simple objects
perl-Date-Span-1.127-alt1.noarch.rpm deal with date/time ranges than span multiple dates
perl-Date-Spoken-German-0.05-alt1.noarch.rpm perl module Date-Spoken-German
perl-Date-SundayLetter-1.10-alt1.noarch.rpm perl module Date-SundayLetter
perl-Date-Tie-0.20-alt1.noarch.rpm ISO8601 dates made easier
perl-Date-Time2fmtstr-1.11-alt1.noarch.rpm Functions to format Perl time integers to strings based on a "Picture" format string
perl-Date-TimeOfDay-0.005-alt1.noarch.rpm Represent time of day (hh:mm:ss)
perl-Date-Tiny-1.07-alt1_10.noarch.rpm Date object with as little code as possible
perl-Date-Tolkien-Shire-1.902-alt1.noarch.rpm perl module Date-Tolkien-Shire
perl-Date-Tolkien-Shire-Data-0.006-alt1.noarch.rpm Data functionality for Shire calendars