This commit is contained in:
parent
12c2b14b6f
commit
d2b935b85c
@ -147,7 +147,7 @@ func (s *SnapshotProcessor) CreateSnapshot(appName string, labels []string) (str
|
||||
return snapshot.KeyName(s.IndexLabel), fmt.Errorf("saving metadata error: %v", err)
|
||||
}
|
||||
|
||||
tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, snapshot.KeyName(s.IndexLabel)+".zip")
|
||||
tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, snapshot.KeyName(s.IndexLabel)+".tar.zst")
|
||||
|
||||
err = os.Chdir(path.Join(s.AppsPath, appName))
|
||||
if err != nil {
|
||||
@ -186,7 +186,7 @@ func (s *SnapshotProcessor) CreateSnapshot(appName string, labels []string) (str
|
||||
// If you need a new app from existing snapshot just create it.
|
||||
// This restores only content on the disk, doesn't create the container.
|
||||
func (s *SnapshotProcessor) RestoreSnapshot(key string, newAppName string) error {
|
||||
tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, key+".zip")
|
||||
tmpSnapshotArchivePath := path.Join(s.TmpSnapshotPath, key+".tar.zst")
|
||||
|
||||
err := os.MkdirAll(path.Join(s.AppsPath, newAppName), 0755)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user