mirror of
https://github.com/mjl-/mox.git
synced 2025-07-10 09:54:40 +03:00
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:
@ -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)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user