cmd/backup: Fix snapshot not being removed

This commit is contained in:
Tom Wiesing 2022-09-05 15:55:44 +02:00
parent 54747e267e
commit 3c64689068
No known key found for this signature in database

View file

@ -60,8 +60,7 @@ func (bi backupInstance) Run(context wisski_distillery.Context) error {
} }
defer func() { defer func() {
logging.LogMessage(context.IOStream, "Removing temporary backup directory") logging.LogMessage(context.IOStream, "Removing temporary backup directory")
context.Println(path) os.RemoveAll(path) // TODO: Turn this on again
// os.RemoveAll(path) // TODO: Turn this on again
}() }()
// make the snapshot! // make the snapshot!