From f67092e1a93989fdc703d793aec505b24870e488 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Sun, 22 Apr 2012 12:37:16 +0200 Subject: [PATCH] Update send script --- docs/send | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/send b/docs/send index ec2fc165..63fcb20b 100755 --- a/docs/send +++ b/docs/send @@ -8,12 +8,25 @@ cwd=`pwd` lang=$1 src=$cwd/manuals/${lang} -dest=bacula:/var/www/bacula/5.2.x-manuals/${lang} + +dest=bacula:/var/www/bacula/6.0.x-manuals/${lang} +echo "Sending to $dest" + +for i in console developers main misc problems utility; do + echo " " + echo "Sending: $src/$i" + echo "To: $dest/$i" + rsync -avz --delete --progress -e ssh $src/$i/ $dest/$i/ + rsync -avz --delete --progress -e ssh $src/$i/$i.pdf $dest/$i/ +done + +dest=bsweb:/var/www/docs/6.0.x-manuals/${lang} +echo "Sending to $dest" for i in console developers main misc problems utility; do echo " " echo "Sending: $src/$i" echo "To: $dest/$i" - rsync -avz --delete -e ssh $src/$i/ $dest/$i/ - rsync -avz --delete -e ssh $src/$i/$i.pdf $dest/$i/ + rsync -avz --delete --progress -e ssh $src/$i/ $dest/$i/ + rsync -avz --delete --progress -e ssh $src/$i/$i.pdf $dest/$i/ done -- 2.39.5