mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-07-28 19:12:43 +00:00
Merge pull request #5711 from qiuming-best/release-1.10
Fix error with Restic backup empty volumes
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Fix error with Restic backup empty volumes
|
||||
@@ -137,7 +137,7 @@ func (rp *resticProvider) RunBackup(
|
||||
|
||||
summary, stderrBuf, err := restic.RunBackup(backupCmd, log, updater)
|
||||
if err != nil {
|
||||
if strings.Contains(err.Error(), "snapshot is empty") {
|
||||
if strings.Contains(stderrBuf, "snapshot is empty") {
|
||||
log.Debugf("Restic backup got empty dir with %s path", path)
|
||||
return "", true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user