fetch-results.sh 163 B

1234567891011
  1. #!/bin/bash
  2. if [ ! -f "hosts" ]; then
  3. echo "No hosts file found."
  4. exit 1
  5. fi
  6. while read line; do
  7. echo $line
  8. rsync -azr -e ssh $line .
  9. done <hosts