118 |
/etc/sudoers |
/etc/sudoers |
119 |
/root |
/root |
120 |
/home/e-smith/Maildir |
/home/e-smith/Maildir |
|
/home/e-smith/home |
|
121 |
/home/e-smith/ssl.crt |
/home/e-smith/ssl.crt |
122 |
/home/e-smith/ssl.key |
/home/e-smith/ssl.key |
123 |
/home/e-smith/dkim_keys |
/home/e-smith/dkim_keys |
288 |
/usr/sbin/amportal |
/usr/sbin/amportal |
289 |
/usr/sbin/fwconsole |
/usr/sbin/fwconsole |
290 |
EOF |
EOF |
291 |
# smeserver-fail2ban |
# smeserver-fail2ban |
292 |
if [ -d /etc/fail2ban/action.d ]; then |
if [ -d /etc/fail2ban/action.d ]; then |
293 |
for F in /etc/fail2ban/action.d/*; do |
for F in $(ls /etc/fail2ban/action.d/);do |
294 |
rpm -qf /etc/fail2ban/action.d/"$F" >/dev/null 2>&1 || echo /etc/fail2ban/action.d/"$F" >>dir.list |
rpm -qf /etc/fail2ban/action.d/$F >/dev/null 2>&1 || echo /etc/fail2ban/action.d/$F >> dir.list |
295 |
done |
done |
296 |
fi |
fi |
297 |
if [ -d /etc/fail2ban/fail2ban.d ]; then |
if [ -d /etc/fail2ban/fail2ban.d ]; then |
298 |
for F in /etc/fail2ban/fail2ban.d*; do |
for F in $(ls /etc/fail2ban/fail2ban.d/);do |
299 |
rpm -qf /etc/fail2ban/fail2ban.d/"$F" >/dev/null 2>&1 || echo /etc/fail2ban/fail2ban.d/"$F" >>dir.list |
rpm -qf /etc/fail2ban/fail2ban.d/$F >/dev/null 2>&1 || echo /etc/fail2ban/fail2ban.d/$F >> dir.list |
300 |
done |
done |
301 |
fi |
fi |
302 |
if [ -d /etc/fail2ban/filter.d ]; then |
if [ -d /etc/fail2ban/filter.d ]; then |
303 |
for F in /etc/fail2ban/filter.d/*; do |
for F in $(ls /etc/fail2ban/filter.d/);do |
304 |
rpm -qf /etc/fail2ban/filter.d/"$F" >/dev/null 2>&1 || echo /etc/fail2ban/filter.d/"$F" >>dir.list |
rpm -qf /etc/fail2ban/filter.d/$F >/dev/null 2>&1 || echo /etc/fail2ban/filter.d/$F >> dir.list |
305 |
done |
done |
306 |
fi |
fi |
307 |
if [ -d /etc/fail2ban/jail.d ]; then |
if [ -d /etc/fail2ban/jail.d ]; then |
308 |
for F in /etc/fail2ban/jail.d/*; do |
for F in $(ls /etc/fail2ban/jail.d/);do |
309 |
rpm -qf /etc/fail2ban/jail.d/"$F" >/dev/null 2>&1 || echo /etc/fail2ban/jail.d/"$F" >>dir.list |
rpm -qf /etc/fail2ban/jail.d/$F >/dev/null 2>&1 || echo /etc/fail2ban/jail.d/$F >> dir.list |
310 |
done |
done |
311 |
fi |
fi |
312 |
rpm -q smeserver-grr >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-grr >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
435 |
rpm -q smeserver-webfilter >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-webfilter >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
436 |
/var/squidGuard/blacklists/ |
/var/squidGuard/blacklists/ |
437 |
EOF |
EOF |
438 |
#smeserver-webshares |
#smeserver-webshare |
439 |
rpm -q smeserver-webshares >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-webshare >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
440 |
/opt/webshare |
/opt/webshare |
441 |
EOF |
EOF |
442 |
# smeserver-zabbix-server smeserver-zabbix-agent smeserver-zabbix-proxy |
# smeserver-zabbix-server smeserver-zabbix-agent smeserver-zabbix-proxy |
516 |
|
|
517 |
if [ $TEST = "n" ]; then |
if [ $TEST = "n" ]; then |
518 |
echo "Stopping Services and running backup" |
echo "Stopping Services and running backup" |
519 |
echo "Test $TEST" |
|
520 |
exit 1 |
# uncomment to test Test and prevent backup running |
521 |
|
# echo "Test mode $TEST" |
522 |
|
# exit 1 |
523 |
|
|
524 |
#### stop services so no changes occurs |
#### stop services so no changes occurs |
525 |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
547 |
|
|
548 |
else |
else |
549 |
echo "Test mode enabled - no backup run" |
echo "Test mode enabled - no backup run" |
550 |
echo "Test $TEST" |
echo "Test mode $TEST" |
551 |
exit 0 |
exit 0 |
552 |
fi |
fi |
553 |
|
|