tweaks to backup & verifydata tool to make a typical backup+verifydata produce no output

for easy use in a crontab
This commit is contained in:
Mechiel Lukkien
2023-06-01 11:34:28 +02:00
parent d25131f2f2
commit cafbfc5fdf
4 changed files with 10 additions and 13 deletions

View File

@ -335,13 +335,13 @@ possibly making them potentially no longer readable by the previous version.
checkAccounts()
checkOther()
if fail {
log.Fatalf("errors were found")
} else {
log.Printf("%s: OK", dataDir)
}
if backupmoxversion != moxvar.Version {
log.Printf("NOTE: The backup was made with mox version %q, while verifydata was run with mox version %q. Database files have probably been modified by running mox verifydata. Make a fresh backup before upgrading.", backupmoxversion, moxvar.Version)
}
if fail {
log.Fatalf("errors were found")
} else {
fmt.Printf("%s: OK\n", dataDir)
}
}