check: Complain about usage of s3 legacy layout

This commit is contained in:
Michael Eischer
2022-04-10 14:11:48 +02:00
parent 8b8bd4e8ac
commit fcb3ddf181
2 changed files with 26 additions and 3 deletions

View File

@@ -260,10 +260,12 @@ func runCheck(opts CheckOptions, gopts GlobalOptions, args []string) error {
if checker.IsOrphanedPack(err) {
orphanedPacks++
Verbosef("%v\n", err)
continue
} else if _, ok := err.(*checker.ErrLegacyLayout); ok {
Verbosef("repository still uses the S3 legacy layout\nPlease run `restic migrate s3legacy` to correct this.\n")
} else {
errorsFound = true
Warnf("%v\n", err)
}
errorsFound = true
Warnf("error: %v\n", err)
}
if orphanedPacks > 0 {