[exo-jcr-commits] exo-jcr SVN: r3756 - jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin.

do-not-reply at jboss.org do-not-reply at jboss.org
Thu Dec 30 06:01:59 EST 2010


Author: dkuleshov
Date: 2010-12-30 06:01:59 -0500 (Thu, 30 Dec 2010)
New Revision: 3756

Modified:
   jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.cmd
   jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.sh
Log:
EXOJCR-1076: little fix and help changes

Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.cmd
===================================================================
--- jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.cmd	2010-12-30 11:00:19 UTC (rev 3755)
+++ jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.cmd	2010-12-30 11:01:59 UTC (rev 3756)
@@ -1,4 +1,7 @@
 @echo off
+
+set auth=-b
+
 if NOT "%1" == "-u" goto :help
 shift
 if "%1" == "" goto :help
@@ -15,7 +18,6 @@
 shift
 )
 if "%1" == "-b" (
-set auth=%1
 shift
 )
 set host=%1
@@ -50,10 +52,11 @@
 
 goto :eof
 :help
-echo            -u ^<user^> -p ^<password^> ^<form_of_authentication^> ^<host:port^> ^<command^> 
+echo            -u ^<user^> -p ^<password^> [form_of_authentication] ^<host:port^> ^<command^> 
 echo. 
-echo            ^<form_of_authentication^>  :  -b - is used for basic authentication 
+echo            [form_of_authentication]  :  -b - is used for basic authentication 
 echo                                         -f - is used for form authentication 
+echo                                         if no authentication set basic authentication is used
 echo. 
 echo            ^<command^>                 :  start ^<repo[/ws]^> ^<backup_dir^> [^<incr^>]  
 echo                                         stop ^<backup_id^> 

Modified: jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.sh
===================================================================
--- jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.sh	2010-12-30 11:00:19 UTC (rev 3755)
+++ jcr/trunk/applications/exo.jcr.applications.backupconsole.dist/bin/exobackup.sh	2010-12-30 11:01:59 UTC (rev 3756)
@@ -4,11 +4,11 @@
 
 if [ "$1" != "-u" ] 
 then
-echo "           -u <user> -p <password> <form_of_authentication> <host:port> <command> "
+echo "           -u <user> -p <password> [form_of_authentication] <host:port> <command> "
 echo " "
-echo "           <form_of_authentication>  :  -b - is used for basic authentication "
+echo "           [form_of_authentication]  :  -b - is used for basic authentication "
 echo "                                        -f - is used for form authentication "
-echo " "
+echo "                                        if no authentication set basic authentication is used"
 echo "           <command>                 :  start <repo[/ws]> <backup_dir> [<incr>]  "
 echo "                                        stop <backup_id> "
 echo "                                        status <backup_id> "



More information about the exo-jcr-commits mailing list