Neues Modul: 98_avbackup: FHEM Backup für Linux und Windows

Begonnen von anvoes, 19 November 2019, 19:57:44

Vorheriges Thema - Nächstes Thema

anvoes

Ich habe ein Modul 98_avbackup.pm geschrieben, welches rückwärtskompatibel zu 98_backup.pm und dessen backup Kommando das Kommando avbackup zur Verfügung stellt.

Der Hauptgrund für die Entwicklung war, dass es kein funktionierendes Backup Kommando für FHEM unter Windows gibt und da ich sehr dankbar für die FHEM Software bin, wollte ich zumindest anbieten etwas zurückgeben zu können.

Wesentliche Merkmale:

  • Rückwärtskompatibel zu bestehenden backup Kommando
  • Unterstützt Linux und Windows
  • Verwendung von 7Zip/tar auf Linux und 7Zip auf Windows
  • Durch die Verwendung von 7Zip können auf Windows sowohl ZIP Archive als auch TAR (.tar.gz) Archive erstellt werden. Das gleiche gilt natürlich auch für Linux, falls dort 7Zip verfügbar ist und verwendet wird.
  • Vollständige Signalisierung des Backupablaufs durch trigger auf global (Meldungen: Status, Pfad des erstellten Archivs, Pfad der Logdatei, benötigte Zeit für das Backup und Fehlermeldung, falls ein Fehler auftrat)
  • Möglichkeit das Backupkommando zusätzlich zu den Attributen auch über Argumente für das Kommando zu parametrisieren
  • Ausführung Backup im Vordergrund oder Hintegrund - wie bisher auch
  • Automatisches Generieren eines Dummy Devices zur Darstellung des Backupverlaufs einschliesslich des Notify und Log Devices.
  • Dateinamen und Verzeichnisse mit Leerzeichen werden korrekt behandelt.
  • Das Archiv enthält nur relative Pfadnamen. Falls alle zu sichernde Dateien unter modpath liegen, dann relativ zu modpath, ansonsten relativ zu '/' bzw. 'C:\' oder auf welchem Volume FHEM auch liegt. Einschränkung Windows: falls Dateien auf verschiedene Volumes liegen, kann das Backup nicht erstellt werden, da man sonst absolute Pfadnamen verwenden müsste.
  • Einstellungsmöglichkeit für die zeitabhängige Benennung von Archivnamen und Verzeichnisstruktur im Backupverzeichnis. Z.B. kann eingestellt werden, dass der Dateiname nur den Zeitstempel des Tages enthält. Wenn 7Zip im ZIP Modus verwendet wird, werden für alle Backups während eines Tages lediglich jeweils die gänderten Dateien ausgetauscht und nicht jedesmal das Archiv neu erstellt.
  • Die Datei 98_avbackup.pm enthält eine ziemlich vollständige POD/HTML Dokumentation für alle Details.
  • ... noch einige andere Sachen die in der Doku beschrieben sind.

Ich habe sowohl auf Windows als auch auf Linux getestet und kann aktuell keine Fehler mehr finden.

Falls jemand Interesse hat es einfach mal auszuprobieren - ich habe die beiden Dateien, die benötigt werden (98_avbackup.pm und avbackup.pl) diesem Beitrag angehängt.
Die beiden Dateien müssen lediglich nach ${modpath]/FHEM kopiert werden und danach entweder "reload 98_avbackup.pm" oder "shutdown restart" ausgeführt werden.

Danach kann das Backup mit dem Kommando avbackup angestoßen werden.

Aktuell werden per Default automatisch die Devices für den Status erstellt (die Devices heißen FHEM_Backup, FHEM_Backup_EVENT und FHEM_Backup_LOG) und auch ein automatisches Sichern der Config veranlasst. Die Devices befinden sich dann im Raum "FHEM Backup". Dieses Verhalten kann natürlich auch abgeschalten werden. Die Devices können natürlich jederzeit gefahrlos gelöscht werden.

Hoffe, ihr stolpert nicht sofort über einen Fehler, den ich doch übersehen habe oder bei mir noch nicht produzieren konnte ;)

Andreas

binford6000

Moin Andreas,
hab dein neues Modul mal getestet und soweit keine Auffälligkeiten festgestellt  :)

Tolle Arbeit!
VG Sebastian

binford6000

#2
Ich habe avbackup jetzt auch produktiv im Einsatz.  :D Einzig was mich stört ist, dass das notify immer wieder im Raum "FHEM Backup" erstellt wird.
Das möchte ich aber nicht. Deshalb habe ich mal quick and dirty in der sub AvbAutoCreateDev($$;%) {...} beim notify was auskommentiert:
#$attr{$notifyName}{room} = $room;

Ist es eigentlich gewollt, dass mit Loglevel 0 soviel ins Log geschrieben wird?  :o
MMn. sollte dann dort nur Start...Ende bzw. Erfolg|Fehler stehen...
2020.01.25 06:52:47 0:  avbackup: include config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:47 0:  avbackup: [1]: opened config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:47 0:  avbackup: [5]: closed config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:47 0:  avbackup: include state file: '/opt/fhem/log/fhem.save'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/cache'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.alexa'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/CHANGED'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.cache'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/configDB.pm'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/README_DEMO.txt'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.aws'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.homebridge'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/unused'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/demolog'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.config'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.bash_history'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/alexa-fhem.cfg'
2020.01.25 06:52:47 0:  avbackup: EXCLUDE: '/opt/fhem/..'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/certs'
2020.01.25 06:52:47 0:  avbackup: EXCLUDE: '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.ssh'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/fhem.pl'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/log'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/FHEM'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/MAINTAINER.txt'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/docs'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.selected_editor'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/contrib'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/www'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.npm'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/kalender'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/fhem.cfg.demo'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/.local'
2020.01.25 06:52:47 0:  avbackup: EXCLUDE: '/opt/fhem/backup'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/backup_cfg_state'
2020.01.25 06:52:47 0:  avbackup: include: '/opt/fhem/restoreDir'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'FHEM_Backup_LOG'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: 'log/FHEM_Backup_LOG.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: 'log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'FileLog_play1_wz'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/play1_wz-2020-01-25.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'Logfile'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: './log/fhem-2020-01-25.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: './log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'alexaFHEMlog'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: './log//alexa-2020-01-25.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: './log//'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'bu_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_bu-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'bz_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_bz-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'fl_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_fl-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'homebridgeFHEMlog'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: './log//homebridgeFHEM-2020-01-25.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: './log//'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'ku_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_ku-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'outdoor_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/out_temp-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'sz_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_sz-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'wc_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_wc-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: [1]: found log device: 'wz_temp.log'
2020.01.25 06:52:47 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_wz-2020-01.log'
2020.01.25 06:52:47 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:47 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:47 0:  avbackup: execute command: '"/usr/bin/perl" "/opt/fhem/FHEM/avbackup.pl"  -archiverMode "tar" -archiverPath "" -basedir "/opt/fhem" -basename "FHEM_Backup" -fhemPerl "/opt/fhem/fhem.pl" -granularity "second" -perlExe "/usr/bin/perl" -port "7072" -storedir "/opt/fhem/backup" -subdir "" -symlink "no" -verbose "9" -trigger avbackup ".alexa" ".aws" ".bash_history" ".cache" ".config" ".homebridge" ".local" ".npm" ".selected_editor" ".ssh" "CHANGED" "FHEM" "MAINTAINER.txt" "README_DEMO.txt" "alexa-fhem.cfg" "backup_cfg_state" "cache" "certs" "configDB.pm" "contrib" "demolog" "docs" "fhem.cfg" "fhem.cfg.demo" "fhem.pl" "kalender" "log" "log/fhem.save" "restoreDir" "unused" "www" > /dev/null 2>&1 &'
2020.01.25 06:52:47 0:  avbackup: backup started in background using: /opt/fhem/FHEM/avbackup.pl
2020.01.25 06:52:47 3:  deletereading FHEM_Backup file : Deleted reading file for device FHEM_Backup
2020.01.25 06:52:47 3:  deletereading FHEM_Backup logfile : Deleted reading logfile for device FHEM_Backup
2020.01.25 06:52:47 3:  deletereading FHEM_Backup size : Deleted reading size for device FHEM_Backup
2020.01.25 06:52:47 3:  deletereading FHEM_Backup time : Deleted reading time for device FHEM_Backup
2020.01.25 06:52:47 3:  FHEM_Backup_EVENT return value: Deleted reading time for device FHEM_Backup
2020.01.25 06:52:52 0:  avbackup: include config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:52 0:  avbackup: [1]: opened config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:52 0:  avbackup: [5]: closed config file: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:52 0:  avbackup: include state file: '/opt/fhem/log/fhem.save'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/cache'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.alexa'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/fhem.cfg'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/CHANGED'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.cache'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/configDB.pm'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/README_DEMO.txt'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.aws'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.homebridge'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/unused'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/demolog'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.config'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.bash_history'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/alexa-fhem.cfg'
2020.01.25 06:52:52 0:  avbackup: EXCLUDE: '/opt/fhem/..'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/certs'
2020.01.25 06:52:52 0:  avbackup: EXCLUDE: '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.ssh'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/fhem.pl'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/log'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/FHEM'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/MAINTAINER.txt'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/docs'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.selected_editor'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/contrib'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/www'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.npm'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/kalender'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/fhem.cfg.demo'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/.local'
2020.01.25 06:52:52 0:  avbackup: EXCLUDE: '/opt/fhem/backup'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/backup_cfg_state'
2020.01.25 06:52:52 0:  avbackup: include: '/opt/fhem/restoreDir'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'FHEM_Backup_LOG'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: 'log/FHEM_Backup_LOG.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: 'log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'FileLog_play1_wz'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/play1_wz-2020-01-25.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'Logfile'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: './log/fhem-2020-01-25.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: './log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'alexaFHEMlog'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: './log//alexa-2020-01-25.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: './log//'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'bu_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_bu-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'bz_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_bz-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'fl_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_fl-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'homebridgeFHEMlog'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: './log//homebridgeFHEM-2020-01-25.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: './log//'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'ku_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_ku-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'outdoor_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/out_temp-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'sz_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_sz-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'wc_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_wc-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:52 0:  avbackup: [1]: found log device: 'wz_temp.log'
2020.01.25 06:52:52 0:  avbackup: [2]: found log file: '/opt/fhem/log/temp_wz-2020-01.log'
2020.01.25 06:52:52 0:  avbackup: [3]: found log directory: '/opt/fhem/log/'
2020.01.25 06:52:52 0:  avbackup: [4]: check log external: if '/opt/fhem/log' starts with '/opt/fhem'
2020.01.25 06:52:53 0:  avbackup: execute command: '"/usr/bin/perl" "/opt/fhem/FHEM/avbackup.pl"  -archiverMode "tar" -archiverPath "" -basedir "/opt/fhem" -basename "FHEM_Backup" -fhemPerl "/opt/fhem/fhem.pl" -granularity "second" -perlExe "/usr/bin/perl" -port "7072" -storedir "/opt/fhem/backup" -subdir "" -symlink "no" -verbose "9" -trigger avbackup ".alexa" ".aws" ".bash_history" ".cache" ".config" ".homebridge" ".local" ".npm" ".selected_editor" ".ssh" "CHANGED" "FHEM" "MAINTAINER.txt" "README_DEMO.txt" "alexa-fhem.cfg" "backup_cfg_state" "cache" "certs" "configDB.pm" "contrib" "demolog" "docs" "fhem.cfg" "fhem.cfg.demo" "fhem.pl" "kalender" "log" "log/fhem.save" "restoreDir" "unused" "www" > /dev/null 2>&1 &'
2020.01.25 06:52:53 0:  avbackup: backup started in background using: /opt/fhem/FHEM/avbackup.pl
2020.01.25 06:53:15 1:  Backup stopped with success
2020.01.25 06:53:18 1:  Backup stopped with success


VG Sebastian

binford6000

#3
Das Attribut backupVerbose soll ja lt. Standard auf 0 stehen. Aber selbts mit gesetztem Attribut auf 0 wird das Logfile geflutet.
Für das Attribut backupDebug hab ich nichts in der Hilfe finden können. Hier ist wohl noch ein kleiner Fehler drin...
VG Sebastian