From 1fc8f165f75ee54fa7cb25fc9becdde59b8b0345 Mon Sep 17 00:00:00 2001 From: Mechiel Lukkien Date: Thu, 9 May 2024 17:48:22 +0200 Subject: [PATCH] clarify behaviour of backup command from RobSlgm, issue #172 --- doc.go | 8 ++++++-- main.go | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/doc.go b/doc.go index cd87e2f..97ac9bd 100644 --- a/doc.go +++ b/doc.go @@ -825,8 +825,12 @@ All files in the data directory that aren't recognized (i.e. other than known database files, message files, an acme directory, the "tmp" directory, etc), are stored, but with a warning. -A clean successful backup does not print any output by default. Use the --verbose flag for details, including timing. +Remove files in the destination directory before doing another backup. The +backup command will not overwrite files, but print and return errors. + +Exit code 0 indicates the backup was successful. A clean successful backup does +not print any output, but may print warnings. Use the -verbose flag for +details, including timing. To restore a backup, first shut down mox, move away the old data directory and move an earlier backed up directory in its place, run "mox verifydata", diff --git a/main.go b/main.go index e416697..f80802f 100644 --- a/main.go +++ b/main.go @@ -1367,8 +1367,12 @@ All files in the data directory that aren't recognized (i.e. other than known database files, message files, an acme directory, the "tmp" directory, etc), are stored, but with a warning. -A clean successful backup does not print any output by default. Use the --verbose flag for details, including timing. +Remove files in the destination directory before doing another backup. The +backup command will not overwrite files, but print and return errors. + +Exit code 0 indicates the backup was successful. A clean successful backup does +not print any output, but may print warnings. Use the -verbose flag for +details, including timing. To restore a backup, first shut down mox, move away the old data directory and move an earlier backed up directory in its place, run "mox verifydata",