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 |
408 |
rpm -q smeserver-sme9admin >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-sme9admin >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
409 |
/var/lib/sme9admin/ |
/var/lib/sme9admin/ |
410 |
EOF |
EOF |
411 |
|
#softethernet |
412 |
|
rpm -q softethervpn >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
413 |
|
/usr/vpnserver/vpn_server.config |
414 |
|
/usr/vpnserver/backup.vpn_server.config |
415 |
|
/usr/vpnserver/chain_certs |
416 |
|
/usr/vpnserver/packet_log |
417 |
|
/usr/vpnserver/security_log |
418 |
|
/usr/vpnserver/server_log |
419 |
|
EOF |
420 |
#smeserver-sysmon |
#smeserver-sysmon |
421 |
rpm -q smeserver-sysmon >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-sysmon >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
422 |
/var/lib/rrd/ |
/var/lib/rrd/ |
444 |
rpm -q smeserver-webfilter >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-webfilter >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
445 |
/var/squidGuard/blacklists/ |
/var/squidGuard/blacklists/ |
446 |
EOF |
EOF |
447 |
#smeserver-webshares |
#smeserver-webshare |
448 |
rpm -q smeserver-webshares >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
rpm -q smeserver-webshare >/dev/null 2>&1 && cat <<'EOF' >>dir.list |
449 |
/opt/webshare |
/opt/webshare |
450 |
EOF |
EOF |
451 |
# smeserver-zabbix-server smeserver-zabbix-agent smeserver-zabbix-proxy |
# smeserver-zabbix-server smeserver-zabbix-agent smeserver-zabbix-proxy |
525 |
|
|
526 |
if [ $TEST = "n" ]; then |
if [ $TEST = "n" ]; then |
527 |
echo "Stopping Services and running backup" |
echo "Stopping Services and running backup" |
528 |
echo "Test $TEST" |
|
529 |
exit 1 |
# uncomment to test Test and prevent backup running |
530 |
|
# echo "Test mode $TEST" |
531 |
|
# exit 1 |
532 |
|
|
533 |
#### stop services so no changes occurs |
#### stop services so no changes occurs |
534 |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
if [ -e /usr/lib/systemd/system/qmail.service ]; then |
556 |
|
|
557 |
else |
else |
558 |
echo "Test mode enabled - no backup run" |
echo "Test mode enabled - no backup run" |
559 |
echo "Test $TEST" |
echo "Test mode $TEST" |
560 |
exit 0 |
exit 0 |
561 |
fi |
fi |
562 |
|
|