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