From fb2aaeae0f2db379c91b087a8d997ca8a39c3a14 Mon Sep 17 00:00:00 2001 From: Ryan Tucker Date: Fri, 10 Jun 2011 20:55:59 -0400 Subject: [PATCH] make the backup-manager.py --help more useful --- backup-manager.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/backup-manager.py b/backup-manager.py index 09d94e7..10f509a 100755 --- a/backup-manager.py +++ b/backup-manager.py @@ -150,7 +150,15 @@ def make_restore_script(backup, expire=86400): def main(): # check command line options - parser = optparse.OptionParser(usage="usage: %prog [options] list/delete/script") + parser = optparse.OptionParser( + usage="usage: %prog [options] [list|delete|script]", + description="" + + "Companion maintenance script for BackupPC_archiveHost_s3. " + + "By default, it assumes the 'list' command, which displays all " + + "of the backups currently archived on S3. The 'delete' command " + + "is used to delete backups. The 'script' command produces a " + + "script that can be used to download and restore a backup." + ) parser.add_option("-H", "--host", dest="host", help="Name of backed-up host") parser.add_option("-b", "--backup-number", dest="backupnum",