summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Sharpe <sharpe@samba.org>1998-08-21 09:01:30 +0000
committerRichard Sharpe <sharpe@samba.org>1998-08-21 09:01:30 +0000
commit04c4ca1b241f3ef49e4a626c35141fea3cb1099a (patch)
treeddb47de596f79d52a6e8bc437cd33f73a399a7fe
parent2aa4ae7311d2c2f01db03d5c463808bc5105111a (diff)
downloadsamba-04c4ca1b241f3ef49e4a626c35141fea3cb1099a.tar.gz
samba-04c4ca1b241f3ef49e4a626c35141fea3cb1099a.tar.bz2
samba-04c4ca1b241f3ef49e4a626c35141fea3cb1099a.zip
Submitting the smbtar changes to the main branch as well.
Regards Richard Sharpe (This used to be commit 749ec1e0a79c5836bba0fc0213576ed79ef761d5)
-rw-r--r--source3/script/smbtar7
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/script/smbtar b/source3/script/smbtar
index 20422b0334..25c36b2a8f 100644
--- a/source3/script/smbtar
+++ b/source3/script/smbtar
@@ -6,6 +6,10 @@
# and Ricky Poulten (ricky@logcam.co.uk)
#
# (May need to change shell to ksh for HPUX or OSF for better getopts)
+#
+# 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.
case $0 in
# when called by absolute path, assume smbclient is in the same directory
@@ -25,6 +29,7 @@ verbose="2>/dev/null" # Default: no echo to stdout
log="-d 2"
newer=""
blocksize=""
+clientargs="-c 'tarmode full'"
tarcmd="c"
tarargs=""
cdcmd="\\"
@@ -145,6 +150,6 @@ if [ -z "$verbose" ]; then
fi
eval $SMBCLIENT "'\\\\$server\\$service'" "'$password'" -U "'$username'" \
--E -N $log -D "'$cdcmd'" \
+-E -N $log -D "'$cdcmd'" ${clientargs} \
-T${tarcmd}${tarargs} $blocksize $newer $tapefile $* $verbose