From: Kern Sibbald Date: Sun, 22 Apr 2012 10:37:16 +0000 (+0200) Subject: Update send script X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f67092e1a93989fdc703d793aec505b24870e488;p=bacula%2Fdocs Update send script --- 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