#!/bin/sh

###  !!!   will be invoked by /etc/anacrontab  !!!

   ##### fetches the list of files from the  remote  server g-h-o.de/Help 
   ##### (g-h-o.de defined in config-file)
#sitecopy --fetch g-h-o-help
   # produces a listing of all  the  differences  between the local files 
   # and the remote copy for the specified sites, shows progress
#sitecopy -o -l g-h-o-help > g-h-o-help.090112.diff

   #  updates the remote copy of the specified sites
cd /home/gerd/.sitecopy
su -c "sitecopy --update g-h-o-help | tee g-h-o-help.log" gerd
# su -c "sitecopy --dry-run --update g-h-o-help | tee g-h-o-help.log" gerd
# su -c "sitecopy --dry-run --debug=ftp,cleartext,httpauth --logfile=./log --update g-h-o-help | tee g-h-o-help.log" gerd

   ##### fetches the list of files from the  remote  server: g-h-o.de/Fotos
#sitecopy --fetch g-h-o-fotos
   # produces a listing of all  the  differences  between the local files 
   # and the remote copy for the specified sites, shows progress
#sitecopy -o -l g-h-o-fotos > g-h-o-fotos.090112.diff
   #  updates the remote copy of the specified sites
#sitecopy --update g-h-o-fotos | tee g-h-o-fotos.log

