DNS data
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
475 B

  1. #!/bin/sh
  2. RSYNCOPT="-azOP"
  3. #RSYNCOPT="$RSYNCOPT --exclude */*.zone.in"
  4. #RSYNCOPT="$RSYNCOPT --exclude .gitignore"
  5. RSYNCOPT="$RSYNCOPT --exclude data.cdb"
  6. #RSYNCOPT="$RSYNCOPT --dry-run"
  7. RSYNCOPT="$RSYNCOPT --delete --delete-after"
  8. while read REMOTE PORT DIR; do
  9. (
  10. export RSYNC_RSH="ssh -p $PORT"
  11. echo "=== $REMOTE:$PORT ($DIR) ==="
  12. rsync $RSYNCOPT data/stage/ "$REMOTE:$DIR/" &&
  13. ssh -p $PORT $REMOTE make -B -C "$DIR/" data.cdb
  14. ) < /dev/null
  15. done < root/farm.txt