summaryrefslogtreecommitdiff
path: root/source/script
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-11-21 09:29:35 +0000
committerRichard Sharpe <sharpe@samba.org>1998-11-21 09:29:35 +0000
commit8594c4bcae503972679c55a2fcab8eb69faf3ae3 (patch)
tree35c3cbba8ddf58e6c965d6b5641c8e4844d8ab3f /source/script
parentfe4ef4bbef01aed75807c884249ca8efa5de4140 (diff)
downloadsamba-8594c4bcae503972679c55a2fcab8eb69faf3ae3.tar.gz
Added changes to smbtar submitted by Sandy Whitesel
Added some extra documentation for smbclient Grr, Jeremy beat me to a bug fix in client.c Will have to get Jeremy to tell me how to check out SAMBA_2_0 :-)
Diffstat (limited to 'source/script')
-rw-r--r--source/script/smbtar8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/script/smbtar b/source/script/smbtar
index 25c36b2a8f7..203d24cf63a 100644
--- a/source/script/smbtar
+++ b/source/script/smbtar
@@ -7,6 +7,8 @@
#
# (May need to change shell to ksh for HPUX or OSF for better getopts)
#
+# sandy nov 3 '98 added -a flag
+#
# Richard Sharpe, added -c 'tarmode full' so that we back up all files to
# fix a bug in clitar when a patch was added to stop system and hidden files
# being backed up.
@@ -43,6 +45,7 @@ Function: backup/restore a Windows PC directories to a local tape file
Options: (Description) (Default)
-r Restore from tape file to PC Save from PC to tapefile
-i Incremental mode Full backup mode
+ -a Reset archive bit mode Don't reset archive bit
-v Verbose mode: echo command Don't echo anything
-s <server> Specify PC Server $server
-p <password> Specify PC Password $password
@@ -69,7 +72,7 @@ if [ $# = 0 ]; then
fi
-while getopts rivl:b:d:N:s:p:x:u:Xt: c; do
+while getopts riavl:b:d:N:s:p:x:u:Xt: c; do
case $c in
r) # [r]estore to Windows (instead of the default "Save from Windows")
tarcmd="x"
@@ -77,6 +80,9 @@ while getopts rivl:b:d:N:s:p:x:u:Xt: c; do
i) # [i]ncremental
tarargs=${tarargs}g
;;
+ a) # [a]rchive
+ tarargs=${tarargs}a
+ ;;
l) # specify [l]og file
log="-d $OPTARG"
case "$OPTARG" in