Documentation ¶
Index ¶
- type Engine
- func (r *Engine) Backup(backupPath, hostname string, force bool) string
- func (r *Engine) GetBackupDates() (latestSnapshotDate, oldestSnapshotDate time.Time, err error)
- func (*Engine) GetName() string
- func (r *Engine) RawCommand(cmd []string) (err error)
- func (r *Engine) Restore(backupPath, hostname string, force bool, snapshotName string) string
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct { DefaultArgs []string Output map[string]utils.OutputFormat }
Engine stores informations to use Restic backup engine
func (*Engine) GetBackupDates ¶
GetBackupDates runs a Restic command locally to retrieve latest snapshot date
func (*Engine) RawCommand ¶
RawCommand runs a custom Restic command locally
type Snapshot ¶
type Snapshot struct { Time time.Time `json:"time"` Parent string `json:"parent"` Tree string `json:"tree"` Path []string `json:"path"` Hostname string `json:"hostname"` ID string `json:"id"` ShortID string `json:"short_id"` }
Snapshot is a struct returned by the function snapshots()
Click to show internal directories.
Click to hide internal directories.