mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-07 05:46:37 +00:00
Merge pull request #5713 from qiuming-best/restic-empty-dir-fix
[Cherry-Pick]Fix error with Restic backup empty volumes
This commit is contained in:
1
changelogs/unreleased/5713-qiuming-best
Normal file
1
changelogs/unreleased/5713-qiuming-best
Normal file
@@ -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