Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1"
Variables ¶
This section is empty.
Functions ¶
func GetExecPath ¶
func SnapshotDir ¶
func UploadDir ¶
func UploadDir(rule BackupRule, dir string) error
Types ¶
type BackpackFlow ¶
type BackpackFlow struct {
// contains filtered or unexported fields
}
func (*BackpackFlow) Run ¶
func (bf *BackpackFlow) Run() (err error)
type BackupRule ¶
type Config ¶
type Config struct { Version string `json:"version"` BackupRules []BackupRule `json:"backups"` }
func ParseConfigFromBytes ¶
func ParseConfigFromFile ¶
type Cron ¶
type Cron struct {
// contains filtered or unexported fields
}
func NewCronFromConfig ¶
func NewCronWithScheduler ¶
func (*Cron) RegisterDaily ¶
func (*Cron) RegisterInterval ¶
func (*Cron) StartAsync ¶
func (c *Cron) StartAsync()
type FileCommand ¶
type FileCommand string
const ( Copy FileCommand = "copy" Sqlite FileCommand = "sqlite" Ignore FileCommand = "ignore" )
type FileRule ¶
type FileRule struct { Regex *regexp.Regexp Command FileCommand }
func (*FileRule) UnmarshalJSON ¶
type RetryingWorkflow ¶
type RetryingWorkflow struct {
// contains filtered or unexported fields
}
func (*RetryingWorkflow) Run ¶
func (wf *RetryingWorkflow) Run() error
type Workflow ¶
type Workflow interface {
Run() error
}
func NewBackpackFlow ¶
func NewBackpackFlow(uploadRule BackupRule) Workflow
func NewRetryingWorkflow ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.