1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash declare -A RSYNC source /etc/conf.d/rbldnsd-sync cd /var/rbldnsd umask 0027 for type in ${!RSYNC[@]}; do mkdir -p $type for file in ${RSYNC[$type]}; do base=${file##*/} rsync -uzvt $file $type/$base done done