mirror of https://github.com/Zelo72/rpi
This commit is contained in:
parent
f4fb17aaad
commit
0bcd62cf7c
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Script: backupPiholeSettings.sh - https://github.com/RPiList/specials (/dev/)
|
||||
# Script: backupPiholeSettings.sh - https://github.com/Zelo72/rpi (/pihole/)
|
||||
#
|
||||
# Beschreibung: Das Script sichert mittels pihole -a teleporter die relevanten Pihole Konfigurationsdateien in einem
|
||||
# Teleporter tar.gz Archiv. Dieses Archiv lässt sich in der Weboberfläche des Pihole's unter
|
||||
|
@ -19,12 +19,12 @@
|
|||
# Aufruf: sudo ./backupPiholeSettings.sh /mnt/nas/rpi/
|
||||
# optional: sudo ./backupPiholeSettings.sh /mnt/nas/rpi/ 180
|
||||
#
|
||||
# Ausgabedateien: /var/log/svpihole/Ym_backupPiholeSettings.sh.log --> monatliches Logfile
|
||||
# /var/log/svpihole/backupPiholeSettings.cron.log --> Logifile des Cron-Jobs
|
||||
# /.../pi-hole-teleporter_Y-m-d_H-M-S.tar.gz --> Teleporter Sicherungsarchiv
|
||||
# Ausgabedateien: /var/log/pihole/Ym_backupPiholeSettings.sh.log --> monatliches Logfile
|
||||
# /var/log/pihole/backupPiholeSettings.cron.log --> Logifile des Cron-Jobs
|
||||
# /.../pi-hole-teleporter_Y-m-d_H-M-S.tar.gz --> Teleporter Sicherungsarchiv
|
||||
#
|
||||
# Installation: 1. Script downloaden:
|
||||
# wget https://raw.githubusercontent.com/RPiList/specials/master/dev/backupPiholeSettings.sh
|
||||
# wget https://raw.githubusercontent.com/Zelo72/rpi/master/pihole/backupPiholeSettings.sh
|
||||
# 2. Script mittels sudo chmod +x backupPiholeSettings.sh ausführbar machen.
|
||||
#
|
||||
# Installation: 1. Script mittels sudo cp backupPiholeSettings.sh /root nach /root kopieren.
|
||||
|
@ -33,7 +33,7 @@
|
|||
# Am Ende der Datei z.B. folgendes einfügen um das Script 2 x monatlich am 15. und 30. um 00:00 Uhr
|
||||
# auszuführen:
|
||||
#
|
||||
# 0 0 */15 * * /root/backupPiholeSettings.sh /mnt/nas/rpi/ > /var/log/svpihole/backupPiholeSettings.cron.log
|
||||
# 0 0 */15 * * /root/backupPiholeSettings.sh /mnt/nas/rpi/ > /var/log/pihole/backupPiholeSettings.cron.log
|
||||
#
|
||||
# 4. Datei speichern und schliessen (im nano Editor: Strg+o/Enter/Strg+x).
|
||||
#
|
||||
|
@ -72,7 +72,7 @@ fi
|
|||
# *** Initialisierung ***
|
||||
|
||||
# Logging initialisieren
|
||||
logDir=/var/log/svpihole
|
||||
logDir=/var/log/pihole
|
||||
log=$logDir/$(date +'%Y%m')_backupPiholeSettings.sh.log
|
||||
mkdir -p $logDir
|
||||
|
||||
|
|
Loading…
Reference in New Issue