LittleGiant\SpinDB\Storage\DBBackup
Matches a DB backup
Synopsis
class DBBackup
{
- // methods
- public void __construct()
- public string|null getTime()
- public string getDate()
- public string getDateTime()
- public string getKey()
- public bool matches()
- public bool requirePurging()
- protected bool isDaily()
- protected bool isWeekly()
- protected bool isMonthly()
- protected bool isYearly()
- protected bool isNewerThan()
Members
protected
- $date
—
string
Date this backup was created (ISO_8601) - $time
—
LittleGiant\SpinDB\Storage\string|null
Time this backup was created (optional)
Methods
protected
- isDaily() — Check if this item matches one of the daily rules
- isMonthly() — Check if this item matches one of the monthly rules
- isNewerThan()
- isWeekly() — Check if this item matches one of the weekly rules
- isYearly() — Check if this item matches one of the yearly rules
public
- __construct()
- getDate()
- getDateTime() — Get combined date / time
- getKey() — Build AWS key this backup corresponds to
- getTime()
- matches() — Determine if this backup matches the given date
- requirePurging() — Check if this file should be purged