Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Restorer ¶
type Restorer struct { Error func(dir string, node *restic.Node, err error) error SelectFilter func(item string, dstpath string, node *restic.Node) (selectedForRestore bool, childMayBeSelected bool) // contains filtered or unexported fields }
Restorer is used to restore a snapshot to a directory.
func NewRestorer ¶
NewRestorer creates a restorer preloaded with the content from the snapshot id.
func (*Restorer) RestoreTo ¶
RestoreTo creates the directories and files in the snapshot below dst. Before an item is created, res.Filter is called.
Click to show internal directories.
Click to hide internal directories.