From fd9839a1e7bac72dc705f1f52b84d888437090d2 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 22 Jun 2010 19:33:12 +0000 Subject: [PATCH] Improved the doc usage of the sogo-tool utility for the backup/restore ops. Monotone-Parent: 009abd7de53e78e489e448345fde9f38d62f532a Monotone-Revision: a0586e26adb36e48a7abc91b58465c3ccf2b3486 Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2010-06-22T19:33:12 Monotone-Branch: ca.inverse.sogo --- Tools/SOGoToolBackup.m | 7 ++++--- Tools/SOGoToolRestore.m | 10 +++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/Tools/SOGoToolBackup.m b/Tools/SOGoToolBackup.m index 9fc85c64b..961f4e8ff 100644 --- a/Tools/SOGoToolBackup.m +++ b/Tools/SOGoToolBackup.m @@ -1,6 +1,6 @@ /* SOGoToolBackup.m - this file is part of SOGo * - * Copyright (C) 2009 Inverse inc. + * Copyright (C) 2009-2010 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -91,8 +91,9 @@ - (void) usage { fprintf (stderr, "backup directory ALL|user1 [user2] ...\n\n" - " folder the folder where backup files will be stored\n" - " user the user of whom to save the data\n"); + " directory the target directory where backup files will be stored\n" + " user the user of whom to save the data or ALL for everybody\n\n" + "Example: /usr/sbin/sogo-tool backup /tmp/foo ALL\n"); } - (BOOL) checkDirectory diff --git a/Tools/SOGoToolRestore.m b/Tools/SOGoToolRestore.m index 21205c1c9..f6e2375ad 100644 --- a/Tools/SOGoToolRestore.m +++ b/Tools/SOGoToolRestore.m @@ -1,6 +1,6 @@ /* SOGoToolRestore.m - this file is part of SOGo * - * Copyright (C) 2009 Inverse inc. + * Copyright (C) 2009-2010 Inverse inc. * * Author: Wolfgang Sourdeau * @@ -105,8 +105,12 @@ typedef enum SOGoToolRestoreMode { - (void) usage { fprintf (stderr, "restore [-l|-f/-F folder/ALL|-p] directory user\n\n" - " folder the folder where backup files will be stored\n" - " user the user of whom to save the data\n"); + " directory the directory where backup files were initially stored\n" + " user the user of whom to restore the data\n" + " -l flag used to list folders to restore\n" + " -f/-F flag used to specify which folder to restore, ALL for everything\n\n" + "Examples: /usr/local/sbin/sogo-tool restore -l /tmp/foo bob\n" + " /usr/local/sbin/sogo-tool restore -f Contacts/personal /tmp/foo bob\n"); } - (BOOL) checkDirectory