summarylogtreecommitdiffstats
path: root/rbldnsd-sync.sh
diff options
context:
space:
mode:
authorpappy2019-01-07 15:21:13 +0200
committerpappy2019-01-07 15:21:13 +0200
commit648c6baaa27437271f7186e373982b3376fc44b7 (patch)
tree225bb956cfe87c922409145516f45762b8b28475 /rbldnsd-sync.sh
downloadaur-648c6baaa27437271f7186e373982b3376fc44b7.tar.gz
initial import
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
+