summarylogtreecommitdiffstats
path: root/rbldnsd-sync.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rbldnsd-sync.sh')
-rw-r--r--rbldnsd-sync.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/rbldnsd-sync.sh b/rbldnsd-sync.sh
new file mode 100644
index 000000000000..dc00304c103c
--- /dev/null
+++ b/rbldnsd-sync.sh
@@ -0,0 +1,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
+