mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 13:20:29 +01:00
try restarting even when stopping some containers failed
This commit is contained in:
parent
825cbb50ef
commit
aae97a5617
@ -186,8 +186,9 @@ func (s *script) stopContainers() (func() error, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var stopError error
|
||||||
if len(stopErrors) != 0 {
|
if len(stopErrors) != 0 {
|
||||||
return noop, fmt.Errorf(
|
stopError = fmt.Errorf(
|
||||||
"stopContainersAndRun: %d error(s) stopping containers: %w",
|
"stopContainersAndRun: %d error(s) stopping containers: %w",
|
||||||
len(stopErrors),
|
len(stopErrors),
|
||||||
err,
|
err,
|
||||||
@ -244,7 +245,7 @@ func (s *script) stopContainers() (func() error, error) {
|
|||||||
len(stoppedContainers),
|
len(stoppedContainers),
|
||||||
)
|
)
|
||||||
return nil
|
return nil
|
||||||
}, nil
|
}, stopError
|
||||||
}
|
}
|
||||||
|
|
||||||
// takeBackup creates a tar archive of the configured backup location and
|
// takeBackup creates a tar archive of the configured backup location and
|
||||||
|
Loading…
Reference in New Issue
Block a user