http://www.perlmonks.org?node_id=1063764


in reply to Curve fitting for rsync snapshot deletion

Color me stupid. but...what is x?

I'm having a real hard time parsing this in my head.

  • Comment on Re: Curve fitting for rsync snapshot deletion

Replies are listed 'Best First'.
Re^2: Curve fitting for rsync snapshot deletion
by Bloodnok (Vicar) on Nov 22, 2013 at 08:39 UTC
    Hi Voronich ,

    In the OP, given

    1. Convert the snapshot dir's datetime name to epoch 2. In the trip script apply the epochs to a parabolic function: y = x^ +2
    x is the epoch equivalent of the directorys' timestamp and y is the value on which the decision to backup (or not) is made - as determined by applying the function to the epoch.

    Is that of any help ?

    A user level that continues to overstate my experience :-))