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
This commit is contained in:
Ludovic Marcotte
2010-06-22 19:33:12 +00:00
parent a6bdbfc801
commit fd9839a1e7
2 changed files with 11 additions and 6 deletions
+4 -3
View File
@@ -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 <wsourdeau@inverse.ca>
*
@@ -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
+7 -3
View File
@@ -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 <wsourdeau@inverse.ca>
*
@@ -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