component/snapshots: Create new component
This commit creates a new 'snapshots' component that is intended to manage snapshots and backups.
This commit is contained in:
parent
ea56ff4aac
commit
f58920baf4
7 changed files with 89 additions and 63 deletions
|
|
@ -70,8 +70,8 @@ func (si systemupdate) Run(context wisski_distillery.Context) error {
|
|||
for _, d := range []string{
|
||||
dis.Config.DeployRoot,
|
||||
dis.Instances().Path(),
|
||||
dis.SnapshotsStagingPath(),
|
||||
dis.SnapshotsArchivePath(),
|
||||
dis.Snapshots().StagingPath(),
|
||||
dis.Snapshots().ArchivePath(),
|
||||
} {
|
||||
context.Println(d)
|
||||
if err := dis.Core.Environment.MkdirAll(d, environment.DefaultDirPerm); err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue