Documentation ¶
Index ¶
Constants ¶
View Source
const ( CommandBackup = "backup" CommandCheck = "check" CommandForget = "forget" CommandInit = "init" CommandPrune = "prune" CommandSnapshots = "snapshots" CommandUnlock = "unlock" CommandMount = "mount" CommandCopy = "copy" )
Restic commands
View Source
const ( DefaultConfigurationFile = "profiles" DefaultProfileName = "default" DefaultCommand = "snapshots" DefaultResticLockRetryAfter = 60 * time.Second DefaultResticStaleLockAge = 2 * time.Hour DefaultTheme = "light" DefaultIONiceFlag = false DefaultStandardNiceFlag = 0 DefaultBackgroundNiceFlag = 5 DefaultVerboseFlag = false DefaultQuietFlag = false DefaultMinMemory = 100 )
Configuration defaults
View Source
const ( FlagAsChild = "as-child" FlagPort = "parent-port" )
resticprofile flag
View Source
const ( SchedulerLaunchd = "launchd" SchedulerWindows = "taskscheduler" SchedulerSystemd = "systemd" SchedulerCrond = "crond" )
Scheduler type
View Source
const ( MinResticLockRetryTime = 15 * time.Second MaxResticLockRetryTime = 30 * time.Minute MinResticStaleLockAge = 1 * time.Hour )
Limits for restic lock handling (stale locks and retry on lock failure)
View Source
const ( ScheduleLockModeOptionFail = "fail" ScheduleLockModeOptionIgnore = "ignore" )
Schedule lock mode config options
View Source
const ( ParameterIONice = "ionice" ParameterIONiceClass = "ionice-class" ParameterIONiceLevel = "ionice-level" ParameterNice = "nice" ParameterPriority = "priority" ParameterDefaultCommand = "default-command" ParameterInitialize = "initialize" ParameterResticBinary = "restic-binary" ParameterInherit = "inherit" ParameterHost = "host" ParameterPath = "path" ParameterTag = "tag" ParameterDescription = "description" ParameterVersion = "version" )
Parameter
View Source
const ( SectionConfigurationGlobal = "global" SectionConfigurationRetention = "retention" SectionConfigurationEnvironment = "env" SectionConfigurationGroups = "groups" SectionConfigurationIncludes = "includes" SectionConfigurationProfiles = "profiles" SectionConfigurationSchedules = "schedules" SectionDefinitionCommon = "common" SectionDefinitionForget = "forget" )
Section
View Source
const ( SchedulePermissionUser = "user" SchedulePermissionSystem = "system" SchedulePriorityBackground = "background" SchedulePriorityStandard = "standard" )
Parameter values
Variables ¶
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.