data

package
v0.0.0-...-b9966b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2017 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package data provides data indexing, archiving, and gathering functions.

Index

Constants

View Source
const (
	ErrNoVol      = logs.Err("Error no volume for job.")
	ErrNoSrv      = logs.Err("Error no server for job.")
	ErrDB         = logs.Err("Error accessing database.")
	ErrNoFull     = logs.Err("Error no existing full backup.")
	EvtRescanVols = iota
	EvtRescanSrvs
	EvtRescanJobs
	EvtVerify
)

Variables

This section is empty.

Functions

func GetDiffTar

func GetDiffTar(c *ssh.Client, full, src, dst string) error

GetDiffTar creates a differential backup of src on c, comparing it with the file index in full, saving the resulting tar and index to dst.

func GetFullTar

func GetFullTar(c *ssh.Client, src, dst string) error

GetFullTar will tar up src on c, and pipe the tar file into dst locally.

Types

type Scheduler

type Scheduler struct {
	// contains filtered or unexported fields
}

func NewScheduler

func NewScheduler(db models.Handler) *Scheduler

func (*Scheduler) Close

func (s *Scheduler) Close()

func (*Scheduler) Run

func (s *Scheduler) Run()

keeps track of all helper goroutines. Will block.

func (*Scheduler) RunJob

func (s *Scheduler) RunJob(j models.Job)

func (*Scheduler) ScanJobs

func (s *Scheduler) ScanJobs()

clock, cron

func (*Scheduler) ScanSrvs

func (s *Scheduler) ScanSrvs()

slock, srvs

func (*Scheduler) ScanVols

func (s *Scheduler) ScanVols()

vlock, vols

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL