| Home | Mirror | Search |
/etc/cron.daily/backup
#!/bin/bash
for ip in {23..32} {49,50} {81..92}; do mkdir -p /opt/backup/$ip/srv/; rsync -auz --delete root@172.16.3.$ip:/srv/* /opt/backup/$ip/srv/; done &
for ip in {23..32} {49,50} {81..92}; do mkdir -p /opt/backup/$ip/www/; rsync -auz --delete root@172.16.3.$ip:/www/* /opt/backup/$ip/www/; done &