backup: Move taking snapshot to separate function

This commit moves taking a snapshot of a running instance to a separate
function.
This commit is contained in:
Tom Wiesing 2022-09-06 18:05:42 +02:00
parent ef338cca05
commit bb73a73f57
No known key found for this signature in database
5 changed files with 164 additions and 102 deletions

View file

@ -94,7 +94,7 @@ func (ds Stack) Run(io stream.IOStream, autoRemove bool, service, command string
if !io.StdinIsATerminal() {
compose = append(compose, "-T")
}
compose = append(compose, command)
compose = append(compose, service, command)
compose = append(compose, args...)
code, err := ds.compose(io, compose...)