Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BackupId = newKey("backup-id", "backup id to use (backup tasks will autogenerate if not set)", "")
backup/restore shared
View Source
var BackupSchedule = newKey("backup-schedule", "cron expression for backups schedule", "")
View Source
var BackupStopModes = stopModes([]string{"labelled", "linked", "writers"})
...filters
View Source
var ContainerBackupDir = newKey("container-backup-dir", "backups archieve directory", "/backups")
daemon
View Source
var DaemonAddr = newKey("daemon-addr", "bind address for bckupr daemon, should use unix:///tmp/.bckupr or tcp binding like 0.0.0.0:8000", TcpAddr.Default)
View Source
var DaemonNet = newKey("daemon-net", "network connection type for bckupr daemon, unix or tcp", "tcp")
View Source
var DaemonProtocol = newKey("daemon-protocol", "protocol for bckupr daemon (don't recommend changing)", "http")
View Source
var Debug = newKey("debug", "enable additional logging information", false)
View Source
var DestroyBackups = newKey("destroy-backups", "destroy backups instead of moving to bin directory", false)
rotate
View Source
var DockerHosts = newKey("docker-hosts", "docker host uri's to manage backups on", []string{"unix:///var/run/docker.sock"})
View Source
var ExcludeName = newKey("exclude-names", "exclude containers with matching names", []string{})
View Source
var ExcludeVolumes = newKey("exclude-volumes", "exclude containers with matching volumes", []string{})
View Source
var HostBackupDir = newKey("host-backup-dir", "backups archieve directory", "")
View Source
var IncludeNames = newKey("include-names", "only include containers with matching names", []string{})
View Source
var IncludeVolumes = newKey("include-volumes", "only include containers with matching volumes", []string{})
View Source
var LabelPrefix = newKey("label-prefix", "label prefix used to scan containers for configuration", "bckupr")
View Source
var LocalContainersConfig = newKey("local-containers-config", "yaml config for managing local backups", "./configs/local/tar.yml")
View Source
var NoDryRun = newKey("no-dry-run", "only log actions and not executed", true)
View Source
var NotificationUrls = newKey("notification-urls", "shoutrrr service notification urls (https://containrrr.dev/shoutrrr/latest/services/overview/)", []string{})
View Source
var NotifyJobCompleted = newKey("notify-job-completed", "enable notifications when backups or restores complete", false)
View Source
var NotifyJobError = newKey("notify-job-error", "enable notifications when backups or restores complete with an error", false)
View Source
var NotifyJobStarted = newKey("notify-job-started", "enable notifications when backups or restores start", false)
View Source
var NotifyTaskCompleted = newKey("notify-task-completed", "enable notifications when backups or restores complete on specific volumes", false)
View Source
var NotifyTaskError = newKey("notify-task-errors", "enable notifications when backups or restores complete with an error on specific volumes", false)
View Source
var NotifyTaskStarted = newKey("notify-task-started", "enable notifications when backups or restores start on specific volumes", false)
View Source
var OffsiteContainersConfig = newKey("offsite-containers-config", "yaml config for managing offsite backups", "")
View Source
var PoliciesPath = newKey("rotation-policies-config", "rotation policies yaml path", "./configs/rotation/policies.yaml")
View Source
var RestoreStopModes = stopModes([]string{"labelled", "linked", "attached"})
View Source
var RotateSchedule = newKey("rotate-schedule", "cron expression for rotations schedule", "")
View Source
var TcpAddr = newKey("tcp-addr", "tcp address to bind ui/api", "0.0.0.0:8000")
var UnixSocket = newKey("unix-socket", "unix socket to bind daemon", "/tmp/.bckupr.sock")
View Source
var ThreadLimit = newKey("concurrency", "number of concurrent tasks", runtime.NumCPU())
View Source
var TimeZone = newKey("timezone", "timezone to use for cron scheduling", "UTC")
cron
Functions ¶
This section is empty.
Types ¶
type Key ¶
func (*Key) EnvStringSlice ¶
Click to show internal directories.
Click to hide internal directories.