LittleGiant\SpinDB\Configuration\RotateConfig
Synopsis
class RotateConfig
{
- // constants
- const METHOD_GZIP = 'gzip';
- const METHOD_NONE = 'none';
- // methods
- protected static array getFixedArgs()
- public static array getCurrentArgs()
- protected static array getVariableArgPatterns()
- public static string schedule()
- public static string path()
- public static array|null parse()
- public static string|null bucket()
- public static string region()
- public static string accesKeyID()
- public static string secretAccessKey()
- public static string profile()
- public static int keepDaily()
- public static int keepWeekly()
- public static int keepWeeklyDay()
- public static int keepMonthly()
- public static int keepMonthlyDay()
- public static int keepYearly()
- public static int keepYearlyDay()
- protected static int getNumeric()
- public static string|null archiveMethod()
- public static string extension()
Constants
Name | Value |
---|---|
METHOD_GZIP | 'gzip' |
METHOD_NONE | 'none' |
Methods
protected
- getFixedArgs() — Args that can be evaluated from the current path.
- getNumeric() — Get integer value
- getVariableArgPatterns() — Get all variable arguments and their respective patterns
public
- accesKeyID() — AWS API access key to use. Optional if using IAM
- archiveMethod() — Get archive method to use
- bucket() — Get bucket name to back up to.
- extension() — Get file extension to use (not including .)
- getCurrentArgs() — Get "now" args which represent a new backup.
- keepDaily() — Number of daily backups to keep
- keepMonthly() — Number of monthly backups to keep
- keepMonthlyDay() — Day of month to keep. Starts at 1 obviously.
- keepWeekly() — Number of weekly backups to keep
- keepWeeklyDay() — Day of week to keep. 0 = Sunday, 1 = Monday, etc
- keepYearly() — Number of yearly backups to keep
- keepYearlyDay() — Day of year to backup. Starts at 1.
- parse() — Parse s3 key into date / time parts.
- path() — Get destination path
- profile() — AWS profile name to use if credentials are not provided explicitly.
- region() — AWS Region code
- schedule() — Get schedule
- secretAccessKey() — AWS API secret to use. Optional if using IAM