class

ActiveBackup::RetentionPolicy

Inherits Reference < Object

Constructors

new(keep_last : Int32 = 0, keep_days : Int32 = 0)
Source

Instance methods

apply(entries : Array(Store::Entry), now : Time = Time.utc) : Array(String)

Returns the names to delete from entries (all backups, any order; entries without created_at are kept and ignored).

Source
disabled?
Source
keep_days
Source
keep_last
Source