Add time specification in actions
Opened this issue · 0 comments
blackheaven commented
We should be able to specify time matcher:
[
{ name = "Backups"
, match = "postgresql/*.tar.gz"
, movers = [
{ inputPattern = "postgresql/(.*)$"
, timed = Some
{ source = TimeSource.ModificationTime -- also CreationTime, Name { pattern : Text, format : UTC|Local|Day}
, match = TimeMatch.And (TomeMatch.Older (TimeSpec.Relative 3 TimeUnit.Months)) (TimeMatch.Earlier (TimeSpec.AbsoluteUTC 2022-02-20 12:20:02))
}
, newName = "/mnt/long-term-storage/postgresql/\\1"
}
]
}
]