_pull.sh 594 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. # http://purl.rec.mro/recorder
  3. #
  4. cd "$(dirname "${0}")"
  5. rsync -avPz \
  6. --exclude enclosures/ --exclude logs/ --exclude stations/ \
  7. c2:/var/www/vhosts/rec.mro.name/ .
  8. for st in \
  9. enclosures podcasts \
  10. stations/b1 stations/b2 stations/b5 stations/brheimat stations/b+ stations/puls stations/ro-galaxy
  11. do
  12. rsync -avPz \
  13. --exclude _build/ \
  14. c2:/var/www/vhosts/rec.mro.name/pages/${st}/app pages/${st}/
  15. done
  16. scp c2:/var/www/vhosts/rec.mro.name/bin .
  17. scp c2:/etc/sudoers.d/internet-radio-recorder etc/sudoers.d/
  18. scp c2:/etc/logrotate.d/internet-radio-recorder etc/logrotate.d/