summaryrefslogtreecommitdiff
path: root/download-public
blob: 5f0d720e2105d3a50cb1f87138838457cdef45a6 (plain)
  1. #!/bin/sh
  2. if [ "x$1" = "x" ]; then
  3. echo "usage: $0 host"
  4. exit 1
  5. fi
  6. pwd=`pwd`
  7. here="$pwd"
  8. #there="$1:$pwd"
  9. there="$1::$pwd"
  10. #opt="-v"
  11. case $(basename $0) in
  12. download*)
  13. src="$there"
  14. dest="$here"
  15. ;;
  16. upload*)
  17. src="$here"
  18. dest="$there"
  19. ;;
  20. *)
  21. echo "Unknown action \"$0\""
  22. exit 1
  23. ;;
  24. esac
  25. case "$0" in
  26. *test)
  27. opt="$opt -n"
  28. ;;
  29. *force)
  30. opt="$opt -W"
  31. ;;
  32. esac
  33. #rsync -avrtz -e "ssh" --delete --force $opt $src/ $dest
  34. echo rsync -atzv --partial --delete --force $src/ $dest/