Allow server to make backups
This commit is contained in:
parent
aeceae11d5
commit
b3a827e042
27 changed files with 891 additions and 418 deletions
|
|
@ -45,13 +45,13 @@ func (bi snapshot) Run(context wisski_distillery.Context) error {
|
|||
}
|
||||
|
||||
// do a snapshot of it!
|
||||
err = handleSnapshotLike(context, SnapshotFlags{
|
||||
err = dis.SnapshotManager().HandleSnapshotLike(context.IOStream, snapshots.SnapshotFlags{
|
||||
Dest: bi.Positionals.Dest,
|
||||
Slug: bi.Positionals.Slug,
|
||||
Title: "Snapshot",
|
||||
StagingOnly: bi.StagingOnly,
|
||||
|
||||
Do: func(dest string) SnapshotLike {
|
||||
Do: func(dest string) snapshots.SnapshotLike {
|
||||
snapshot := dis.SnapshotManager().NewSnapshot(instance, context.IOStream, snapshots.SnapshotDescription{
|
||||
Dest: dest,
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue