Hallo,
Ich suche Tester für ein kleines Modul was ich geschrieben habe. Eine Anleitung ist noch nicht fertig aber das sollte nicht so das Problem sein.
Das Modul ist aktuell ausschließlich für ein Nextcloud Upload über HTTPS.
define myNextcloudUpload backupToStorage
Danach einfach den Anweisungen folgen. Es muss an Attributen gesetzt werden
bTS_Host
bTS_User
Danach das Passwort setzen und gut ist.
Es kann zusätzlich noch ein
bTS_Path
gesetzt werden. Das ist der Path welcher dann abwärts Eurer Nextcloud Verzeichnisstruktur geht. Setzt Ihr ihn nicht wird auf der obersten Ebene abgelegt.
Beispiel:
bTS_Path /FHEM-Backup
kopiert das FHEM Backupfile in das Verzeichnis FHEM-Backup unterhalb der obersten Ebene.
Wer testen möchte kann einfach
update add https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
in die FHEM Kommandozeile eingeben.
Es kann auf Wunsch später auch auf andere Plattformen eingestellt werden oder es kopiert nach ein zuvor eingehängtes Netzwerklaufwerk.
Ich bin da recht offen.
Grüße
Marko
Hey Marco,
danke für das Script, ein willkommener Anlass, sich endlich um ein externes Backup zu kümmern.
Ich habs mal installiert und state ist "ready". Wann läuft das Backup los / Wie kann man es starten?
Hallo,
Das Backup läuft los wenn Du es startest.
Das Modul reagiert auf die fertig Meldung des Backup Modules.
Zum testen einfach backup oben in der FHEMWEB Befehlszeile eingeben.
Hast Du ein komplettes Update von FHEM heute gemacht? Das brauchst du wegen der aktuellen 98_backup.pm
Ah, okay. Die Logik hängt am normalen Backup modul, hätt ich mir ja denken können, macht absolut Sinn.
Hat funktioniert, Danke! 8)
Edit: im Log kommt standardmäßig keine Meldung. Ist das so gewollt?
Zitat von: Lucky2k12 am 18 Juni 2020, 15:07:13
Ah, okay. Die Logik hängt am normalen Backup modul, hätt ich mir ja denken können, macht absolut Sinn.
Hat funktioniert, Danke! 8)
Edit: im Log kommt standardmäßig keine Meldung. Ist das so gewollt?
Ja ist so gewollt. Kommt nur was beim Fehler. Im Modul gibt es ein Reading da steht drin ob alles OK oder nicht.
Ich habe die Commandref erstellt und noch ein zwei Sachen erweitert.
Das Modul wäre von meiner Seite her nun komplett. Über Feedback wäre ich sehr verbunden.
Auch wer gerne noch weitere Storagesysteme haben will.
Grüße
Servus Marco
Wenn es für Synology funken würde, wäre es für mich ideal
Gruß
Helmut
Zitat von: Helmi55 am 19 Juni 2020, 10:00:34
Servus Marco
Wenn es für Synology funken würde, wäre es für mich ideal
Gruß
Helmut
Wenn Du mir sagen kannst wie das bei Synology geht dann gerne ;D
Grüße
Ups
da erwischt du mich am falschen Fuß.
Im Prinzip verwende ich meine DS216 für das TM Backup meines iMacs und um Bilder fürs TV zu speichern.
Was würdest du benötigen?
Gruß
Helmut
Ich müsste wissen wie man Daten auf das NAS von extern bekommt. Kann mir vorstellen daß man da ein Verzeichnis als NFS oder CIFS freigeben kann. Aber eventuell gibt es auch eine API über ein Webinterface über das man Daten hochladen kann.
Grüße
Auf die Schnelle habe ich Mals diese API Beschreibung gefunden
https://global.download.synology.com/download/Document/Software/DeveloperGuide/Package/FileStation/All/enu/Synology_File_Station_API_Guide.pdf
Hilft das?
Also ein Upload auf ein NAS System ist absolut sinnvoll und auch auf andere Geräte übertragbar: Läuft z. B. über NFS oder SMB/Cifs - die Backup-Datei muss also nur auf ein freigegebenes Verzeichnis kopiert und der Erfolg der Operation dokumentiert werden.
Würde ich auch begrüßen und testen!
Torsten
Kann bitte jemand mit einer Synology diesen Befehl testen
curl -u USER:PASS -X POST -H \"Content-Type: multipart/form-data\" -F \"path=" & PATH_AUF_DISKSTATION_OHNE_FILENAME & "\" -F \"create_parents=false" & "\" -F \"overwrite=false" & "\" -F \"file=@PATH_LOKALE_DATEI;filename=" & NUR_DATEINAME_AUF_DISKSTATION & "\" http://ip_of_diskstation:5000/entry.cgi
Grüße
Ich würde mich freuen, wenn das Backup auf die Festplatte an meiner FritzBox verschoben werden könnte.
vb
Zitat von: VB90 am 22 Juni 2020, 21:02:03
Ich würde mich freuen, wenn das Backup auf die Festplatte an meiner FritzBox verschoben werden könnte.
vb
Da ginge nur FTP oder CIFS, richtig? Das könnte ich sogar testen. Ich wollte eh CIFS implementieren. Dauert aber etwas.
Zitat von: CoolTux am 22 Juni 2020, 21:08:34
Da ginge nur FTP oder CIFS, richtig? Das könnte ich sogar testen. Ich wollte eh CIFS implementieren. Dauert aber etwas.
Perfekt! Im Gegensatz zum NAS - bei mir Qnap - ist die FB immer an und es steckt ein USB Stick dran, zum Zwischenspeichern der Überwachungsbilder. Dort ist noch Platz für ein Fhem Backup.
Das Laufwerk wird als SMB bereitgestellt und lässt sich zumindest unter Windows sehr easy als Netzlaufwerk verbinden.
Hallo Marko,
wäre auch an der Umsetzung für Synology interessiert. Habe aber voraussichtlich erst nächste Woche Zeit zu testen...
Also falls jemand anderes schonmal loslegen möchte, gerne ;)
VG Sascha
zum Thema NAS,
da kann man doch easy peasy das Laufwerk unter Linux mounten und dann im global den Backup-Pfad anpassen.
schon gehen FHEM backups auf den Share.
cool wäre es natürlich wenn das Mounten vom Modul mit übernommen wird.
Aber ich würde vermuten dass der Aufwand dem FHEM User die Rechte dafür zu geben größer ist als die Ersparnis des mountens?
Zitat von: CoolTux am 22 Juni 2020, 09:40:13
Kann bitte jemand mit einer Synology diesen Befehl testen
curl -u USER:PASS -X POST -H \"Content-Type: multipart/form-data\" -F \"path=" & PATH_AUF_DISKSTATION_OHNE_FILENAME & "\" -F \"create_parents=false" & "\" -F \"overwrite=false" & "\" -F \"file=@PATH_LOKALE_DATEI;filename=" & NUR_DATEINAME_AUF_DISKSTATION & "\" http://ip_of_diskstation:5000/entry.cgi
Grüße
Wie gesagt ich bräuchte erstmal jemanden der Dies hier testet.
Zitat von: CoolTux am 23 Juni 2020, 10:30:44
Wie gesagt ich bräuchte erstmal jemanden der Dies hier testet.
Bekomme folgende Rückmeldung von einer DS218:
curl: (6) Could not resolve host: multipart
-bash: http://192.168.0.130:5000/entry.cgi: Datei oder Verzeichnis nicht gefunden
Ein direktes Anfahren im Browser führt zu:
Es tut uns Leid, die von Ihnen gesuchte Seite konnte nicht gefunden werden.
Grüße Jörg
Zitat von: JoWiemann am 23 Juni 2020, 16:22:21
Bekomme folgende Rückmeldung von einer DS218:
curl: (6) Could not resolve host: multipart
-bash: http://192.168.0.130:5000/entry.cgi: Datei oder Verzeichnis nicht gefunden
Ein direktes Anfahren im Browser führt zu:
Es tut uns Leid, die von Ihnen gesuchte Seite konnte nicht gefunden werden.
Grüße Jörg
Danke Dir. Dann muss ich mal weiter schauen.
Ich habe das hier gefunden: https://homematic-forum.de/forum/viewtopic.php?t=23747&start=100
Vielleicht kannst Du von dort abkupfern.
Grüße Jörg
Sehr coole Idee, ein Backup per CIFS wäre für mich auch ideal.
Testen kann ich ab nächste Woche, da habe ich Urlaub.
Grüße Marcel
Zum Thema Backup und Synology habe ich mir vor einem Jahr so meine Gedanken gemacht. Die Umsetzung mit einem einfachen Shellscript habe ich in meinem Blog aufgezeichnet.
http://frank-schuetz.de/index.php/fhem/28-automatisches-fhem-backup-mit-backup-script (http://frank-schuetz.de/index.php/fhem/28-automatisches-fhem-backup-mit-backup-script)
Das läuft bei mir so seit über einem Jahr völlig transparent in der FHEM Installation und ich habe Backups ohne Ende.
Nächster Synology test
curl -u USER:PASS -X POST -H \"Content-Type: multipart/form-data\" -F \"path=" & PATH_AUF_DISKSTATION_OHNE_FILENAME & "\" -F \"create_parents=false" & "\" -F \"overwrite=false" & "\" -F \"file=@PATH_LOKALE_DATEI;filename=" & NUR_DATEINAME_AUF_DISKSTATION & "\" http://ip_of_diskstation:5000/entry.cgi?api=SYNO.FileStation.Upload&method=upload&version=2
Mag da einer bitte mal schauen.
curl: (6) Could not resolve: multipart (DNS server returned answer with no data)
[1] 6433
[2] 6434
fhem@nas:~$ -sh: http://192.168.178.100:5003/entry.cgi?api=SYNO.FileStation.Upload: No such file or directory
auf meiner Syno 213+
Anbei das Ergebnis mit zwei hintereinander folgenden Aufrufen. Eventuell habe ich die Parameter ja falsch gesetzt :-(
pi@RPi-Fhem-Test:~ $ curl -u Fhem:RPi01DNS02Plus -X POST -H \"Content-Type: multipart/form-data\" -F \"path=" & fhem-backup & "\" -F \"create_parents=false" & "\" -F \"overwrite=false" & "\" -F \"file=@/opt/fhem/FHEM;filename=" & backup.sh & "\" http://192.168.0.130:5000/entry.cgi?api=SYNO.FileStation.Upload&method=upload&version=2
curl: (6) Could not resolve host: multipart
[1] 25069
[2] 25070
-bash: http://192.168.0.130:5000/entry.cgi?api=SYNO.FileStation.Upload: Datei oder Verzeichnis nicht gefunden
pi@RPi-Fhem-Test:~ $ curl -u Fhem:RPi01DNS02Plus -X POST -H \"Content-Type: multipart/form-data\" -F \"path=" & fhem-backup & "\" -F \"create_parents=false" & "\" -F \"overwrite=false" & "\" -F \"file=@/opt/fhem/FHEM;filename=" & backup.sh & "\" http://192.168.0.130:5000/entry.cgi?api=SYNO.FileStation.Upload&method=upload&version=2
curl: (6) Could not resolve host: multipart
[1]- Exit 127 filename=" & backup.sh & "\" http://192.168.0.130:5000/entry.cgi?api=SYNO.FileStation.Upload
[2]+ Fertig method=upload
[1] 25177
[2] 25178
-bash: http://192.168.0.130:5000/entry.cgi?api=SYNO.FileStation.Upload: Datei oder Verzeichnis nicht gefunden
pi@RPi-Fhem-Test:~ $
Synology DS218
Hallo zusammen,
für das Filestation Management auf Synology habe ich noch vor ein Modul zu schreiben, so wie es bereits mit SSCam, SSCal und SSChatBot für einige Synology Dienste vorhanden ist.
Für die Filestation API braucht man vorab Login/Logout Mechanismen. Mit einem simplen Aufruf ist es nicht getan.
Mal schauen wann ich dazu komme.
@Marco, vielleicht kann ich dann gleich eine Schnittstelle für dein Modul implementieren. Wäre doch ein Mehrwert oder ?
LG,
Heiko
Hallo Heiko,
Ja das wäre auf jeden Fall super. Ich habe mir gedacht das es einfach so geht wie bei Nextcloud, dem scheint aber wohl nicht so.
Dann werde ich erstmal schauen das ich ftp und CIFS einbaue in nächster Zeit.
Grüße
@Marco
ZitatDann werde ich erstmal schauen das ich ftp ...
Im DbRep habe ich schon eine Routine drin die (S)FTP mit einigen Einstellmöglichkeiten und einer Versionsverwaltung macht:
FTP Transfer nach Dump
Wenn diese Möglichkeit genutzt werden soll, ist das Attribut "ftpUse" oder "ftpUseSSL" zu setzen. Letzteres gilt wenn eine verschlüsselte Übertragung genutzt werden soll.
Das Modul übernimmt ebenfalls die Versionierung der Dumpfiles im FTP-Zielverzeichnis mit Hilfe des Attributes "ftpDumpFilesKeep". Für die FTP-Übertragung relevante Attribute sind:
ftpUse : FTP Transfer nach dem Dump wird eingeschaltet (ohne SSL Verschlüsselung)
ftpUser : User zur Anmeldung am FTP-Server, default: anonymous
ftpUseSSL : FTP Transfer mit SSL Verschlüsselung nach dem Dump wird eingeschaltet
ftpDebug : Debugging des FTP Verkehrs zur Fehlersuche
ftpDir : Verzeichnis auf dem FTP-Server in welches das File übertragen werden soll (default: "/")
ftpDumpFilesKeep : Es wird die angegebene Anzahl Dumpfiles im <ftpDir> belassen (default: 3)
ftpPassive : setzen wenn passives FTP verwendet werden soll
ftpPort : FTP-Port, default: 21
ftpPwd : Passwort des FTP-Users, default nicht gesetzt
ftpServer : Name oder IP-Adresse des FTP-Servers. notwendig !
ftpTimeout : Timeout für die FTP-Verbindung in Sekunden (default: 30).
Einstieg ist die sub DbRep_sendftp. Ist zwar schon etwas angegraut, aber tut was es soll und vllt. kannst du etwas davon gebrauchen.
LG,
Heiko
Vielen Dank,
Das schaue ich mir gerne an. Eventuell können wir daraus auch eine lib machen. mal sehen.
Grüße
Marko
Ich bekomme:
Unknown module backupToStorage
wenn ich das Modul probier anzulegen
Zitat von: tomspatz am 17 Oktober 2020, 13:56:13
Ich bekomme:
Unknown module backupToStorage
wenn ich das Modul probier anzulegen
https://forum.fhem.de/index.php/topic,112216.msg1065438.html#msg1065438
Hast du gelesen!?
EDIT: der Thread ist doch noch nicht sooo lang, da kann/sollte man sich doch (noch) durchlesen können... Und wo fängt man da an!? Am Anfang... ;)
Ist ([verm.] noch) nicht im offiziellen update...
Gruß, Joachim
Hallo Marco, @Synology User,
ich bin momentan dabei ein Modul SSFile für die Integration der Synology File Station zu erstellen. Hatte ich in #26 ja angedeutet. Es sind schon einige Funktionen implementiert, z.b. klappt der Download problemlos. Der Upload ist etwas aufwändiger und da habe noch eine Hängephase. ;)
Wenn ich soweit bin, mache ich einen entsprechenden Thread auf. Jedenfalls tut sich etwas und damit rückt auch eine mögliche Integration in backupToStorage rückt etwas näher.
Grüße,
Heiko
ha ha ha
ja habe ich gelesen, selbst der UpdateCheck sagt:
Downloading https://fhem.de/fhemupdate/controls_fhem.txt
fhem
nothing to do...
Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
backupToStorage
nothing to do...
Im Log finde ich allerdings:
2020.10.17 14:33:00 1: PERL WARNING: Subroutine backupToStorage_Initialize redefined at ./FHEM/98_backupToStorage.pm line 40.
2020.10.17 14:33:00 0: Undefined subroutine &FHEM::Meta::InitMod called at ./FHEM/98_backupToStorage.pm line 60.
Zitat von: tomspatz am 17 Oktober 2020, 14:36:03
ha ha ha
ja habe ich gelesen, selbst der UpdateCheck sagt:
Downloading https://fhem.de/fhemupdate/controls_fhem.txt
fhem
nothing to do...
Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
backupToStorage
nothing to do...
Im Log finde ich allerdings:
2020.10.17 14:33:00 1: PERL WARNING: Subroutine backupToStorage_Initialize redefined at ./FHEM/98_backupToStorage.pm line 40.
2020.10.17 14:33:00 0: Undefined subroutine &FHEM::Meta::InitMod called at ./FHEM/98_backupToStorage.pm line 60.
Schau mal bitte ob Du die Meta.pm Datei unter /opt/fhem/FHEM/ finden kannst.
Zitat von: tomspatz am 17 Oktober 2020, 14:36:03
ha ha ha
ja habe ich gelesen, selbst der UpdateCheck sagt:
Downloading https://fhem.de/fhemupdate/controls_fhem.txt
fhem
nothing to do...
Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
backupToStorage
nothing to do...
Im Log finde ich allerdings:
2020.10.17 14:33:00 1: PERL WARNING: Subroutine backupToStorage_Initialize redefined at ./FHEM/98_backupToStorage.pm line 40.
2020.10.17 14:33:00 0: Undefined subroutine &FHEM::Meta::InitMod called at ./FHEM/98_backupToStorage.pm line 60.
Was heißt hier: hahaha...
Mit den gelieferten (oder eher NICHT gelieferten) Infos ist es ja wohl mal plausibel zu fragen, ob du das gelesen hast...
Viel Spaß noch, Joachim
Hey Joachim alles locker ;)
@CoolTux
ja Meta.pm ist in dem Verzeichnis vorhanden.
Versuch mal in fhemweb ein reload Meta.pm und schau dann ins Log was da steht.
im log kommt nichts aber im web erscheint sofort:
Undefined subroutine &main::Meta_Initialize called at fhem.pl line 2661.
Du hast doch dein FHEM System er neulich von einer 2018er Version aktualisiert oder?
Ich befürchte das da irgendwas noch fehlt. Weiß aber nicht was.
Moin
jain, das System auf dem ich das backupToStorage Modul teste ist NICHT mein produktiv System.
Das ist tatsächlich mist neu ganz frisch buster auf Raspi und aktuellstes fhem.
Kannst Du mal die Datei /opt/fhem/FHEM/98_backupToStorage.pm mit einem Editor öffnen und in Zeile 37 unter
use utf8;
ein
use Meta;
einfügen. Danach Neustart und das define noch mal probieren.
OK damit lässt sich zumindest das Modul in Betrieb nehmen. Allerdings beim ausführen des Backups, direkt nach neustart kommt:
2020.10.18 18:17:18 0: Featurelevel: 6
2020.10.18 18:17:18 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:6215)
2020.10.18 18:19:07 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.18 18:19:07 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.18 18:19:08 2: backup include:
2020.10.18 18:19:08 2: backup include:
2020.10.18 18:19:08 2: Backup with command: tar czf ./backup/FHEM-20201018_181908.tar.gz "./fhem.pl" "./restoreDir" "./MAINTAINER.txt" "./FHEM" "./contrib" "./log" "./README_DEMO.txt" "./lib" "./docs" "./www" "./fhem.cfg" "./demolog" "./configDB.pm" "./fhem.cfg.demo" "./CHANGED"
2020.10.18 18:19:08 3: telnetForBlockingFn_1603037948: port 44687 opened
Backup done
es wird auch nichts in die cloud geschrieben.
Zeig mal ein list vom Device. Und stell verbose im Device auf 5 und Gib noch mal backup in die Kommandozeile ein.
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-18 18:19:08 fhemBackupFile ./backup/FHEM-20201018_181908.tar.gz
2020-10-18 18:17:18 state ready
Attributes:
bTS_Host https://nextcloud.xxxxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
2020.10.18 19:31:19 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.18 19:31:19 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.18 19:31:20 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.18 19:31:20 2: backup include:
2020.10.18 19:31:20 2: backup include:
2020.10.18 19:31:20 2: Backup with command: tar czf ./backup/FHEM-20201018_193120.tar.gz "./FHEM" "./CHANGED" "./restoreDir" "./lib" "./fhem.pl" "./configDB.pm" "./fhem.cfg.demo" "./docs" "./README_DEMO.txt" "./log" "./demolog" "./fhem.cfg" "./www" "./MAINTAINER.txt" "./contrib"
2020.10.18 19:31:20 3: telnetForBlockingFn_1603042280: port 45819 opened
Backup done
2020.10.18 19:31:47 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.18 19:31:47 4: backupToStorage (myNextcloudUpload) - push to storage function
Die Zeiten passen nicht.
2020-10-18 18:19:08 fhemBackupFile ./backup/FHEM-20201018_181908.tar.gz
Das Reading wurde 18:19 geschrieben aber das Backup lief angeblich
2020.10.18 19:31:20 2: Backup with command: tar czf ./backup/FHEM-20201018_193120.tar.gz "./FHEM"
Ebenso reagierte backupToStorage um die Zeit
2020.10.18 19:31:47 4: backupToStorage (myNextcloudUpload) - push to storage function
Also entweder hat backup das Reading in backupToStorage nicht schreiben können oder irgendwas lief komplett schief. Hast Du denn auch die neuste Version von backup?
also update soeben durchgeführt.
NAch neustart habe ich allerdings in der motd:
Messages collected while initializing FHEM:configfile: Cannot load module backupToStorage
Please define myNextcloudUpload 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a first
SecurityCheck:
WEB is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
Autosave deactivated
Das steht unter global init_errors und das Modul wurde nicht geladen.
SORRY ich bin da ganz raus. Das System ist echt ganz frisch. 4 dummys und ein DOIF welches disable steht.
Ich habe das use Meta jetzt mal eingetragen. Bitte mach noch mal ein update und starte dann neu.
2020.10.19 09:26:03 1: update finished, "shutdown restart" is needed to activate the changes.
2020.10.19 09:26:03 1:
2020.10.19 09:26:03 1: Please consider using the global attribute sendStatistics
2020.10.19 09:39:45 0: Server shutdown
2020.10.19 09:39:47 1: Including fhem.cfg
2020.10.19 09:39:47 3: WEB: port 8083 opened
2020.10.19 09:39:48 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2020.10.19 09:39:51 3: backupToStorage (myNextcloudUpload) - defined
2020.10.19 09:39:51 1: Including ./log/fhem.save
2020.10.19 09:39:51 1: Messages collected while initializing FHEM:SecurityCheck:
WEB is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'INITIALIZED'
];
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready'
];
2020.10.19 09:39:51 0: Featurelevel: 6
2020.10.19 09:39:51 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:7068)
2020.10.19 09:39:51 3: FHEMWEB WEB CSRF error: csrf_915380084934703 ne csrf_93016930270204 for client WEB_192.168.1.10_65379 / command shutdown restart. For details see the csrfToken FHEMWEB attribute.
2020.10.19 09:40:32 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:36 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:36 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:53 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.19 09:40:54 2: backup include:
2020.10.19 09:40:54 2: backup include:
2020.10.19 09:40:54 2: Backup with command: tar czf ./backup/FHEM-20201019_094054.tar.gz "./docs" "./FHEM" "./configDB.pm" "./log" "./www" "./restoreDir" "./fhem.cfg.demo" "./demolog" "./contrib" "./fhem.pl" "./fhem.cfg" "./lib" "./MAINTAINER.txt" "./README_DEMO.txt" "./CHANGED"
2020.10.19 09:40:54 3: telnetForBlockingFn_1603093254: port 38913 opened
Backup done
2020.10.19 09:41:21 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.19 09:41:21 4: backupToStorage (myNextcloudUpload) - push to storage function
Nach wie vor nichts in der cloud. Die backup Datei unter /opt/fhem/backup/ wird erzeugt
btw. die vielen PERL WARNING ???
Zitat von: tomspatz am 19 Oktober 2020, 09:45:10
2020.10.19 09:26:03 1: update finished, "shutdown restart" is needed to activate the changes.
2020.10.19 09:26:03 1:
2020.10.19 09:26:03 1: Please consider using the global attribute sendStatistics
2020.10.19 09:39:45 0: Server shutdown
2020.10.19 09:39:47 1: Including fhem.cfg
2020.10.19 09:39:47 3: WEB: port 8083 opened
2020.10.19 09:39:48 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2020.10.19 09:39:51 3: backupToStorage (myNextcloudUpload) - defined
2020.10.19 09:39:51 1: Including ./log/fhem.save
2020.10.19 09:39:51 1: Messages collected while initializing FHEM:SecurityCheck:
WEB is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'INITIALIZED'
];
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:39:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready'
];
2020.10.19 09:39:51 0: Featurelevel: 6
2020.10.19 09:39:51 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:7068)
2020.10.19 09:39:51 3: FHEMWEB WEB CSRF error: csrf_915380084934703 ne csrf_93016930270204 for client WEB_192.168.1.10_65379 / command shutdown restart. For details see the csrfToken FHEMWEB attribute.
2020.10.19 09:40:32 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:36 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:36 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 09:40:53 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.19 09:40:53 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.19 09:40:54 2: backup include:
2020.10.19 09:40:54 2: backup include:
2020.10.19 09:40:54 2: Backup with command: tar czf ./backup/FHEM-20201019_094054.tar.gz "./docs" "./FHEM" "./configDB.pm" "./log" "./www" "./restoreDir" "./fhem.cfg.demo" "./demolog" "./contrib" "./fhem.pl" "./fhem.cfg" "./lib" "./MAINTAINER.txt" "./README_DEMO.txt" "./CHANGED"
2020.10.19 09:40:54 3: telnetForBlockingFn_1603093254: port 38913 opened
Backup done
2020.10.19 09:41:21 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.19 09:41:21 4: backupToStorage (myNextcloudUpload) - push to storage function
Nach wie vor nichts in der cloud. Die backup Datei unter /opt/fhem/backup/ wird erzeugt
btw. die vielen PERL WARNING ???
Ich brauche bitte das list vom backupToStorage Device.
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-19 09:40:54 fhemBackupFile ./backup/FHEM-20201019_094054.tar.gz
2020-10-19 09:39:51 state ready
Attributes:
bTS_Host https://nextcloud.xxxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
bitteschön
Aus irgendeinem Grund ist Dein System träge. Aber ich werde heute Abend mal eine Version machen wo der Zeitstempel des Readings älter sein darf. Werde da mal 120s nehmen.
Ist halt NUR das Testsystem
Raspberry Pi 2 Model B Rev 1.1
Ich habe mal mehr Logausgaben eingebaut.
Bitte noch mal update dann neustart und dann noch mal backup ausführen.
Darauf achten das backupToStorage verbose noch auf 5 ist.
2020.10.19 17:35:39 0: Server shutdown
2020.10.19 17:35:41 1: Including fhem.cfg
2020.10.19 17:35:41 3: WEB: port 8083 opened
2020.10.19 17:35:42 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2020.10.19 17:35:45 3: backupToStorage (myNextcloudUpload) - defined
2020.10.19 17:35:45 1: Including ./log/fhem.save
2020.10.19 17:35:45 1: Messages collected while initializing FHEM:SecurityCheck:
WEB is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
2020.10.19 17:35:45 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'INITIALIZED'
];
2020.10.19 17:35:45 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 17:35:45 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready'
];
2020.10.19 17:35:45 0: Featurelevel: 6
2020.10.19 17:35:45 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:7499)
2020.10.19 17:36:06 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 17:36:33 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.19 17:36:33 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.19 17:36:33 2: backup include:
2020.10.19 17:36:33 2: backup include:
2020.10.19 17:36:33 2: Backup with command: tar czf ./backup/FHEM-20201019_173633.tar.gz "./README_DEMO.txt" "./docs" "./configDB.pm" "./restoreDir" "./fhem.pl" "./www" "./MAINTAINER.txt" "./CHANGED" "./FHEM" "./contrib" "./fhem.cfg.demo" "./log" "./lib" "./demolog" "./fhem.cfg"
2020.10.19 17:36:33 3: telnetForBlockingFn_1603121793: port 36173 opened
Backup done
2020.10.19 17:37:00 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.19 17:37:00 4: backupToStorage (myNextcloudUpload) - push to storage function
List bitte noch.
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-19 17:36:33 fhemBackupFile ./backup/FHEM-20201019_173633.tar.gz
2020-10-19 17:35:45 state ready
Attributes:
bTS_Host https://nextcloud.spookyzone.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
kannst du bitte noch mal ein update + restart und dann testen machen?
Und wenn es nicht geht bitte log + list
SORRY aber es kommt nichts an :(
2020.10.19 19:50:14 1: Downloading https://fhem.de/fhemupdate/controls_fhem.txt
2020.10.19 19:50:14 1:
2020.10.19 19:50:14 1: fhem
2020.10.19 19:50:15 1: nothing to do...
2020.10.19 19:50:15 1: Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: backupToStorage
2020.10.19 19:50:15 1: UPD lib/FHEM/backupToStorage.pm
2020.10.19 19:50:15 1: saving fhem.cfg
2020.10.19 19:50:15 1: saving ./log/fhem.save
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: New entries in the CHANGED file:
2020.10.19 19:50:15 1: <!DOCTYPE html>
2020.10.19 19:50:15 1: <html lang="en-US">
2020.10.19 19:50:15 1: <head data-suburl="">
2020.10.19 19:50:15 1: <meta charset="utf-8">
2020.10.19 19:50:15 1: <meta name="viewport" content="width=device-width, initial-scale=1">
2020.10.19 19:50:15 1: <meta http-equiv="x-ua-compatible" content="ie=edge">
2020.10.19 19:50:15 1: <title>Page Not Found - mod-backupToStorage - Gitea: Git with a cup of tea</title>
2020.10.19 19:50:15 1: <link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: <script>
2020.10.19 19:50:15 1: if ('serviceWorker' in navigator) {
2020.10.19 19:50:15 1: navigator.serviceWorker.register('/serviceworker.js').then(function(registration) {
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: console.info('ServiceWorker registration successful with scope: ', registration.scope);
2020.10.19 19:50:15 1: }, function(err) {
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: console.info('ServiceWorker registration failed: ', err);
2020.10.19 19:50:15 1: });
2020.10.19 19:50:15 1: }
2020.10.19 19:50:15 1: </script>
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: <meta name="theme-color" content="#6cc644">
2020.10.19 19:50:15 1: <meta name="author" content="FHEM" />
2020.10.19 19:50:15 1: <meta name="description" content="mod-backupToStorage - Modul zum kopieren der erstellten Backup Datei auf ein Storage. z.B Nextcloud" />
2020.10.19 19:50:15 1: <meta name="keywords" content="go,git,self-hosted,gitea">
2020.10.19 19:50:15 1: <meta name="referrer" content="no-referrer" />
2020.10.19 19:50:15 1: ... rest of lines skipped.
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: update finished, "shutdown restart" is needed to activate the changes.
2020.10.19 19:50:15 1:
2020.10.19 19:50:15 1: Please consider using the global attribute sendStatistics
2020.10.19 19:50:15 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UPDATE'
];
2020.10.19 19:50:29 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'SHUTDOWN'
];
2020.10.19 19:50:29 0: Server shutdown
2020.10.19 19:50:31 1: Including fhem.cfg
2020.10.19 19:50:31 3: WEB: port 8083 opened
2020.10.19 19:50:32 2: eventTypes: loaded 16 events from ./log/eventTypes.txt
2020.10.19 19:50:34 3: backupToStorage (myNextcloudUpload) - defined
2020.10.19 19:50:34 1: Including ./log/fhem.save
2020.10.19 19:50:34 1: Messages collected while initializing FHEM:SecurityCheck:
WEB is not password protected
Protect this FHEM installation by defining an allowed device with define allowed allowed
You can disable this message with attr global motd none
2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'INITIALIZED'
];
2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:50:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready'
];
2020.10.19 19:50:34 0: Featurelevel: 6
2020.10.19 19:50:34 0: Server started with 12 defined entities (fhem.pl:22935/2020-10-07 perl:5.028001 os:linux user:fhem pid:7666)
2020.10.19 19:51:02 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:05 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:05 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:16 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.19 19:51:16 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.19 19:51:16 2: backup include:
2020.10.19 19:51:16 2: backup include:
2020.10.19 19:51:16 2: Backup with command: tar czf ./backup/FHEM-20201019_195116.tar.gz "./FHEM" "./log" "./fhem.cfg" "./fhem.cfg.demo" "./contrib" "./demolog" "./lib" "./docs" "./restoreDir" "./MAINTAINER.txt" "./CHANGED" "./README_DEMO.txt" "./fhem.pl" "./www" "./configDB.pm"
2020.10.19 19:51:16 3: telnetForBlockingFn_1603129876: port 34497 opened
Backup done
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=7674)
2020.10.19 19:51:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.19 19:51:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.19 19:51:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-19 19:51:16 fhemBackupFile ./backup/FHEM-20201019_195116.tar.gz
2020-10-19 19:51:50 state ready
2020-10-19 19:51:50 uploadState upload successfully
Attributes:
bTS_Host https://nextcloud.xxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
Das ich hier die URL "maskiere" ist doch OK ??
Wenn du noch mehr Infos etc. brauchst sehr gerne.
Zu mindest ist er nun weiter gekommen.
Laut Log sogar bis zum Ende. Kann da keinen Fehler finden. Sollte also ein File in der Cloud zu finden sein. Kannst du mal schauen was das Log von Nextcloud sagt?
mist
ich finde wirklich nichts.
Die cloud ist hier im Netzwerk. DNS AUflösung funktioniert. Ich komme von jedem Anderen Client per Browser und dem fhem Benutzer drauf.
Die logs finde ich nich wirklich. Das ding läuft im Docker. Ich schaue morgen nochmal. Aber es ist definitiv keine Datei hochgeladen.
Melde Dich mal als Admin an und gehe zu den Einstellungen und da unter Protokollierung. Lass das update noch mal laufen und aktualisiere die Protokollierung. Schau dann mal ob Du was findest. Ich teste hier bei mir mal ein zwei Sachen.
Ich sehe gerade, sorry hatte ich gestern nicht am Handy gesehen, Dein Host ist falsch. Da muss nur der Hostname rein.
bTS_Host nextcloud.xxxxxx.de
Moin,
ich habe aus Neugierde das Modul mal getestet und kann den Fehlerfall von tomspatz nachstellen. Das Verhalten ist 1zu1 wie bei ihm auch mit der Vorgabe des Hostname.: bTS_Host nc.xxxxxxxx.de
Im Protokoll des Administrators taucht leider bei mir gar nichts auf. Im Debug-Modus ist es etwas unübersichtlich, aber ich finde nirgendwo Infos gefunden, dass ein Upload gestartet wurde.
Feature-Idee:
Um etwas Speicherplatz auf der Nextcloud zu sparen wäre es eventuell sinnvoll nicht jeden Tag ein Backup hochzuladen. (Ich mache jede Nacht ein Backup) Sodass nur 1x pro Woche ein Upload geschieht. Vorläufig werde ich das Device wohl 6 Tage disablen und nur Sonntags enabled lassen für das Backup ;)
ZitatMelde Dich mal als Admin an und gehe zu den Einstellungen und da unter Protokollierung. Lass das update noch mal laufen und aktualisiere die Protokollierung.
Da gibt es nichts :( wei auch bei fr00sch
ABER, hier ist die Nextcloud im lokalem Netztwerk. Wobei die DNS etc alles funktioniert, wie ich schon schrieb. Allerdings habe ich es auf eine externe NC probiert, da funktioniert es.
@fr00sch ist deine NC extern oder auch intern ??
Zitat von: fr00sch am 20 Oktober 2020, 09:16:25
Moin,
ich habe aus Neugierde das Modul mal getestet und kann den Fehlerfall von tomspatz nachstellen. Das Verhalten ist 1zu1 wie bei ihm auch mit der Vorgabe des Hostname.: bTS_Host nc.xxxxxxxx.de
Im Protokoll des Administrators taucht leider bei mir gar nichts auf. Im Debug-Modus ist es etwas unübersichtlich, aber ich finde nirgendwo Infos gefunden, dass ein Upload gestartet wurde.
Feature-Idee:
Um etwas Speicherplatz auf der Nextcloud zu sparen wäre es eventuell sinnvoll nicht jeden Tag ein Backup hochzuladen. (Ich mache jede Nacht ein Backup) Sodass nur 1x pro Woche ein Upload geschieht. Vorläufig werde ich das Device wohl 6 Tage disablen und nur Sonntags enabled lassen für das Backup ;)
Von Dir brauche ich bitte das Log und ein list
Zitat von: tomspatz am 20 Oktober 2020, 09:44:22
Da gibt es nichts :( wei auch bei fr00sch
ABER, hier ist die Nextcloud im lokalem Netztwerk. Wobei die DNS etc alles funktioniert, wie ich schon schrieb. Allerdings habe ich es auf eine externe NC probiert, da funktioniert es.
@fr00sch ist deine NC extern oder auch intern ??
Du musst den host auf jeden Fall ändern und dann noch mal testen. Auch hier Log und list dann bitte.
@tomspatz: ich greife über die externe DNS auf meine Nextcloud die im Docker auf meinem QNAP läuft.
];
'uploadState: upload successfully'
'state: ready',
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 08:55:59 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 08:55:59 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=9971)
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: file upload in progress'
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
tar: Entferne führende ,,/" von Zielen harter Verknüpfungen
tar: Entferne führende ,,/" von Elementnamen
2020.10.20 08:55:11 2: Backup with command: tar czf ./backup/FHEM-20201020_085511.tar.gz "./Z_Wave_EG.bin" "./db.conf" "./db_remote.conf" "./gassistant-fhem.cfg" "./changelog.txt" "./FHEM" "./CHANGED" "./configDB.pm" "./kalender.ics" "./dead.letter" "./configDB.conf" "./info" "./config" "./docs" "./fhem.db" "./contrib_old" "./log" "./contrib" "./certs" "configDB.conf" "./babbleFILE" "./fhem.pl" "./restoreDir" "./demolog" "./fhem.cfg" "./README_DEMO.txt" "./gassistant-fhem.cfg.previous" "./backup.sh" "./www" "./db_container.conf" "./MAINTAINER.txt" "./fhem-config.db" "./unused" "./lib" "./fhem_homematic.cfg" "/opt/fhem/fhem-config.db"
2020.10.20 08:55:11 2: backup include SQLite DB File: /opt/fhem/fhem-config.db
2020.10.20 08:55:11 2: backup include: 'configDB.conf'
2020.10.20 08:55:11 1: NOTE: make sure you have a database backup!
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 711
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-20 09:13:06 fhemBackupFile ./backup/FHEM-20201020_091306.tar.gz
2020-10-20 09:13:56 state ready
2020-10-20 09:13:56 uploadState upload successfully
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxxxxxxx.de
bTS_Path /fhem_Backup
bTS_Type Nextcloud
bTS_User xxxxx
Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.
Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??
Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-20 10:19:16 fhemBackupFile ./backup/FHEM-20201020_101916.tar.gz
2020-10-20 10:19:50 state ready
2020-10-20 10:19:50 uploadState upload successfully
Attributes:
bTS_Host nextcloud.xxxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
Zitat von: tomspatz am 20 Oktober 2020, 10:21:33
Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.
Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??
Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-20 10:19:16 fhemBackupFile ./backup/FHEM-20201020_101916.tar.gz
2020-10-20 10:19:50 state ready
2020-10-20 10:19:50 uploadState upload successfully
Attributes:
bTS_Host nextcloud.xxxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
Wenn ich Dich also Recht verstehe ist intern der Zugriff lediglich über http möglich? Und wenn Du es auf HTTPS umstellen tust?
Zitat von: tomspatz am 20 Oktober 2020, 10:21:33
Ich gehe von aus das es in meinem Falle an https liegt.
Externe Zugriffe auf unsere NC laufen über letsencrypt https und werden dann per reverse Proxy durchgereicht.
Zugriffe vom Internen Netzwerk machen den Umweg über extern nicht. Also nicht wie so oft intern -> extern -> intern, sondern direkt intern -> intern, dank der DNS Auflösung über den Server wird dann die IP der NC erreicht allerdings OHNE https. Also ergibt das hier im Browser immer einen Fehler. Das sollte es wohl sein ??
Hier nochmals log und list
2020.10.20 10:18:57 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:18:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: backup include:
2020.10.20 10:19:16 2: Backup with command: tar czf ./backup/FHEM-20201020_101916.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./README_DEMO.txt" "./docs" "./lib" "./demolog" "./CHANGED" "./MAINTAINER.txt" "./fhem.cfg" "./restoreDir" "./www" "./log" "./contrib" "./fhem.pl"
Backup done
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8497)
2020.10.20 10:19:44 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 10:19:45 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:46 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:47 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:48 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:49 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 10:19:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-20 10:19:16 fhemBackupFile ./backup/FHEM-20201020_101916.tar.gz
2020-10-20 10:19:50 state ready
2020-10-20 10:19:50 uploadState upload successfully
Attributes:
bTS_Host nextcloud.xxxxxxx.de
bTS_Path /FHEM-Backup
bTS_User fhem
verbose 5
Doofe Frage. Der Ordner /FHEM-Backup existiert in Deiner Cloud?
Zitat von: fr00sch am 20 Oktober 2020, 10:05:50
@tomspatz: ich greife über die externe DNS auf meine Nextcloud die im Docker auf meinem QNAP läuft.
];
'uploadState: upload successfully'
'state: ready',
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 08:56:00 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 08:55:59 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 08:55:59 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=9971)
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: file upload in progress'
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.20 08:55:58 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
tar: Entferne führende ,,/" von Zielen harter Verknüpfungen
tar: Entferne führende ,,/" von Elementnamen
2020.10.20 08:55:11 2: Backup with command: tar czf ./backup/FHEM-20201020_085511.tar.gz "./Z_Wave_EG.bin" "./db.conf" "./db_remote.conf" "./gassistant-fhem.cfg" "./changelog.txt" "./FHEM" "./CHANGED" "./configDB.pm" "./kalender.ics" "./dead.letter" "./configDB.conf" "./info" "./config" "./docs" "./fhem.db" "./contrib_old" "./log" "./contrib" "./certs" "configDB.conf" "./babbleFILE" "./fhem.pl" "./restoreDir" "./demolog" "./fhem.cfg" "./README_DEMO.txt" "./gassistant-fhem.cfg.previous" "./backup.sh" "./www" "./db_container.conf" "./MAINTAINER.txt" "./fhem-config.db" "./unused" "./lib" "./fhem_homematic.cfg" "/opt/fhem/fhem-config.db"
2020.10.20 08:55:11 2: backup include SQLite DB File: /opt/fhem/fhem-config.db
2020.10.20 08:55:11 2: backup include: 'configDB.conf'
2020.10.20 08:55:11 1: NOTE: make sure you have a database backup!
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 711
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.0.1
READINGS:
2020-10-20 09:13:06 fhemBackupFile ./backup/FHEM-20201020_091306.tar.gz
2020-10-20 09:13:56 state ready
2020-10-20 09:13:56 uploadState upload successfully
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxxxxxxx.de
bTS_Path /fhem_Backup
bTS_Type Nextcloud
bTS_User xxxxx
Sieht eigentlich gut aus. Im angegebenen Ordner liegt aber kein File?
ZitatDoofe Frage. Der Ordner /FHEM-Backup existiert in Deiner Cloud?
alles gut es gibt die schlimmsten Fehler ;)
OK dann bleibt noch die Sache mit HTTP. Ich könnte da jetzt ein Attribut machen, muss aber gestehen ich tue mich da sehr schwer mit eine solche Verbindung mit Passwort-Übergabe ohne Verschlüsselung zu machen. Egal ob eigenes Netz oder nicht. Meine Empfehlung ist daher auf jeden Fall auf HTTPS um zu stellen, auch intern.
Das wäre zumindest einen Versuch wert. Ob und wie es jemand benutzt wäre ja nicht dein Bier ;)
Sehr gerne teste wenn du es schaffst es umzubauen.
LG Tom
@fr00sch ist es bei dir ggf. auch so ??
Ich werde es heute Abend mal umbauen. Werde es aber nicht dokumentieren.
Ich habe ein zusätzliches Attribut namens proto eingerichtet. Dort kann man einzig und allein http auswählen. Wenn man das nicht mehr will muss das Attribut gelöscht werden.
Bitte update machen und testen.
Danke für das Modul - funktioniert bei mir gut.
Gibt es die Möglichkeit auch die Anzahl der Backups zu begrenzen - soll heißen nur z.B. die letzten 7 behalten und den Rest löschen?
gruß anton
Zitat von: CoolTux am 20 Oktober 2020, 15:53:56
Ich habe ein zusätzliches Attribut namens proto eingerichtet. Dort kann man einzig und allein http auswählen. Wenn man das nicht mehr will muss das Attribut gelöscht werden.
Bitte update machen und testen.
2020.10.20 18:48:30 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 18:48:32 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 18:48:32 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 18:49:23 2: backup include:
2020.10.20 18:49:23 2: backup include:
2020.10.20 18:49:23 2: Backup with command: tar czf ./backup/FHEM-20201020_184923.tar.gz "./demolog" "./fhem.cfg.demo" "./FHEM" "./restoreDir" "./fhem.pl" "./MAINTAINER.txt" "./README_DEMO.txt" "./docs" "./log" "./CHANGED" "./fhem.cfg" "./configDB.pm" "./www" "./contrib" "./lib"
Backup done
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8893)
2020.10.20 18:49:51 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 18:49:52 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 18:49:53 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 18:49:54 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 18:49:55 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 18:49:56 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.20 18:49:57 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 18:49:57 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 18:49:57 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 18:49:57 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-20 18:49:23 fhemBackupFile ./backup/FHEM-20201020_184923.tar.gz
2020-10-20 18:49:57 state ready
2020-10-20 18:49:57 uploadState upload successfully
Attributes:
bTS_Host nextcloud.xxxxx.de
bTS_Path /FHEM-Backup
bTS_Proto http
bTS_User fhem
verbose 5
leider nicht, wenn ich allerdings es so versuche:
bTS_Host 192.168.1.95:443
so komme ich im browser auch auf die web Oberfläche der NC, habe ich zumindesteine veränderung im log:
2020.10.20 18:53:10 2: backup include:
2020.10.20 18:53:10 2: backup include:
2020.10.20 18:53:10 2: Backup with command: tar czf ./backup/FHEM-20201020_185310.tar.gz "./fhem.cfg.demo" "./demolog" "./fhem.pl" "./restoreDir" "./FHEM" "./fhem.cfg" "./CHANGED" "./docs" "./log" "./MAINTAINER.txt" "./README_DEMO.txt" "./lib" "./www" "./configDB.pm" "./contrib"
Backup done
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=8905)
2020.10.20 18:53:38 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.20 18:53:39 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing.
2020.10.20 18:53:39 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.20 18:53:39 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.20 18:53:39 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: <html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.16.1</center>
</body>
</html>
'
];
Ich weiss deine Arbeit echt zu schätzen aber das hier ist doch sehr speziell, vielleicht sollte ich lieber unsere UTM anders programmieren.
LG
Tom
Das man eine entsprechende Meldung bekommt wenn man http als Protokoll angibt dann aber auf den SSL Port eine Anfrage schickt ist ja normal.
Irgendwie seltsam das es nicht eine Fehlermeldung gibt. Wenn Du noch Lust hast zum testen würde ich mal schauen das ich versuche als Log Ausgabe das Ergebnis des Kommandos aus zu geben.
Irgendwo muss ja stehen was er da genau für Probleme hat ;D
Zitat von: CoolTux am 20 Oktober 2020, 10:43:21
Sieht eigentlich gut aus. Im angegebenen Ordner liegt aber kein File?
Ja, der Ordner bleibt leider leer.
Ich habe erfolglos noch etwas herum probiert:
- andere Ordner Namen
- Hauptverzeichnis
Aber nachdem ich mir hier die Upload-Zeiten angesehen habe, glaube ich eher, dass gar nichts hochgeladen wird:
];
'uploadState: upload successfully'
'state: ready',
2020.10.21 08:16:33 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 08:16:33 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.21 08:16:33 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.21 08:16:32 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=29103)
];
'state: file upload in progress'
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.21 08:16:31 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Innerhalb von 2 Sekunden sind die 87MB sicherlich nicht hochgeladen ???
Da hilft dann vermutlich die Log-Ausgabe des Upload-Kommandos.
Die Variante mit http kann ich bei mir leider nicht testen.
Ich habe geschaut ob alle notwendigen Paket da sind und es sieht soweit gut aus.
Dankeschön für deine Mühe.
Zitat von: CoolTux am 20 Oktober 2020, 19:52:37
Das man eine entsprechende Meldung bekommt wenn man http als Protokoll angibt dann aber auf den SSL Port eine Anfrage schickt ist ja normal.
Irgendwie seltsam das es nicht eine Fehlermeldung gibt. Wenn Du noch Lust hast zum testen würde ich mal schauen das ich versuche als Log Ausgabe das Ergebnis des Kommandos aus zu geben.
Irgendwo muss ja stehen was er da genau für Probleme hat ;D
Moin
Ja sehr gerne. Gib einfach laut was du noch an Infos brauchst.
So ihr beiden. Ich habe jetzt mal genau an der Stelle ein Log eingebaut wo die Rückgabe des Hochladebefehls kommt. So ganz ohne Auswertung. Quasi pur. Bitte dafür das verbose Attribut im Device auf 5 stellen und dann noch mal testen bitte. Ich brauche dann den Logauszug. Danke Euch.
Grüße
ich möchte die aktuelle Analyse ungern unterbrechen, aber wäre es evtl. möglich oder sinnvoll das Skript zu erweitern, sodass configDB und DbRep Backups auch weggesichert werden können?
Es wäre eine schöne All-in-one Backup Lösung 8)
Zitat von: HeikoGr am 21 Oktober 2020, 09:41:16
ich möchte die aktuelle Analyse ungern unterbrechen, aber wäre es evtl. möglich oder sinnvoll das Skript zu erweitern, sodass configDB und DbRep Backups auch weggesichert werden können?
Es wäre eine schöne All-in-one Backup Lösung 8)
Zu mindest configDB hat bereits eine Backupfunktion.
Ich denke gerade im Bereich Datenbank ist eine individuelle Lösung besser geeignet. Spreche da aus Erfahrung :)
ich habe auch gerade festgestellt, dass sowohl configdb als auch DbRep ins log Verzeichnis dumpen (können). Da das Verzeichnis Teil des backups ist reicht mir das sogar.
Ich würde dir gerne teilweise widersprechen:
Ein einzelnes Backup mit konsistenten Datenständen würde ich bevorzugen. Zumal jedes eingerichtete Backupverfahren selbst konfiguriert werden muss. Das eine Verfahren kann auf Diskstations schreiben, ein anderes nur lokal und deines in eine nextcloud. Das macht es nicht einfacher ;)
Zitat von: HeikoGr am 21 Oktober 2020, 09:55:45
ich habe auch gerade festgestellt, dass sowohl configdb als auch DbRep ins log Verzeichnis dumpen (können). Da das Verzeichnis Teil des backups ist reicht mir das sogar.
Ich würde dir gerne teilweise widersprechen:
Ein einzelnes Backup mit konsistenten Datenständen würde ich bevorzugen. Zumal jedes eingerichtete Backupverfahren selbst konfiguriert werden muss. Das eine Verfahren kann auf Diskstations schreiben, ein anderes nur lokal und deines in eine nextcloud. Das macht es nicht einfacher ;)
Meine Aussage bezog sich ja auf Datenbanken. Eigentlich wollte und will ich das Modul ja ausbauen so das nicht nur auf Nestcloud sondern auch auf Diskstations gesichert werden kann.
Zitat von: CoolTux am 21 Oktober 2020, 09:25:58
So ihr beiden. Ich habe jetzt mal genau an der Stelle ein Log eingebaut wo die Rückgabe des Hochladebefehls kommt. So ganz ohne Auswertung. Quasi pur. Bitte dafür das verbose Attribut im Device auf 5 stellen und dann noch mal testen bitte. Ich brauche dann den Logauszug. Danke Euch.
Grüße
Ich hab den Test gemacht:
];
'uploadState: upload successfully'
'state: ready',
2020.10.21 09:45:55 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 09:45:55 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.21 09:45:55 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.21 09:45:55 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.21 09:45:54 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.21 09:45:54 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=9863)
];
'state: file upload in progress'
2020.10.21 09:45:54 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 09:45:53 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 09:45:53 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.21 09:45:53 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.21 09:45:53 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
Ich habe den Test nochmal wiederholt:
];
'uploadState: upload successfully'
'state: ready',
2020.10.21 10:00:06 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 10:00:06 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.21 10:00:06 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.21 10:00:06 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.21 10:00:04 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 10:00:03 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 10:00:02 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.21 10:00:02 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=11878)
2020.10.21 10:00:02 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: file upload in progress'
2020.10.21 10:00:02 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.21 10:00:01 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 10:00:00 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.21 10:00:00 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.21 10:00:00 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
Da sind wenigstens Infos im LogLevel 5 dabei ???
Allerdings habe ich seit heute morgen folgenden Text im Update-Log drinnen
2020.10.21 09:41:13 1: ... rest of lines skipped.
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1: }
2020.10.21 09:41:12 1: });
2020.10.21 09:41:12 1: console.info('ServiceWorker registration failed: ', err);
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1: }, function(err) {
2020.10.21 09:41:12 1: console.info('ServiceWorker registration successful with scope: ', registration.scope);
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1: navigator.serviceWorker.register('/serviceworker.js').then(function(registration) {
2020.10.21 09:41:12 1: if ('serviceWorker' in navigator) {
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1: New entries in the CHANGED file:
2020.10.21 09:41:12 1:
2020.10.21 09:41:12 1: UPD lib/FHEM/backupToStorage.pm
2020.10.21 09:41:08 1: backupToStorage
2020.10.21 09:41:08 1:
2020.10.21 09:41:08 1: Downloading https://git.cooltux.net/FHEM/mod-backupToStorage/raw/branch/testing/controls_backupToStorage.txt
Ist vermutlich nicht das Problem aber eventuell ein Punkt zur Verbesserung.
Gruß
Zitat von: CoolTux am 21 Oktober 2020, 10:01:45
Meine Aussage bezog sich ja auf Datenbanken. Eigentlich wollte und will ich das Modul ja ausbauen so das nicht nur auf Nextcloud sondern auch auf Diskstations gesichert werden kann.
und das finde ich auch das schöne an diesem Konzept.
configdb dumpt in Datei
dbrep dumpt in Datei
backup sichert das Dateisystem
und dein Modul schreibt die Dateien weg.
So erspart man sich das umständliche und fehleranfällige einrichten von verschiedenen Backup-Zielen und Szenarien.
2020.10.21 19:50:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 19:51:05 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.21 19:51:05 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
2020.10.21 19:51:06 2: backup include:
2020.10.21 19:51:06 2: backup include:
2020.10.21 19:51:06 2: Backup with command: tar czf ./backup/FHEM-20201021_195106.tar.gz "./log" "./contrib" "./docs" "./CHANGED" "./README_DEMO.txt" "./lib" "./MAINTAINER.txt" "./fhem.cfg" "./demolog" "./restoreDir" "./www" "./fhem.pl" "./fhem.cfg.demo" "./configDB.pm" "./FHEM"
2020.10.21 19:51:06 3: telnetForBlockingFn_1603302666: port 39533 opened
Backup done
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=10113)
2020.10.21 19:51:33 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.21 19:51:34 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:51:35 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:51:36 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:51:37 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:51:38 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.21 19:51:39 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.10.21 19:51:39 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.21 19:51:39 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.21 19:51:39 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
mit gesetztem attr bTS_Proto
2020.10.21 19:55:07 2: backup include:
2020.10.21 19:55:07 2: backup include:
2020.10.21 19:55:07 2: Backup with command: tar czf ./backup/FHEM-20201021_195507.tar.gz "./FHEM" "./configDB.pm" "./fhem.cfg.demo" "./fhem.pl" "./www" "./fhem.cfg" "./demolog" "./restoreDir" "./MAINTAINER.txt" "./docs" "./CHANGED" "./README_DEMO.txt" "./lib" "./log" "./contrib"
Backup done
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=10125)
2020.10.21 19:55:34 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.21 19:55:35 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:55:36 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:55:37 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:55:38 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.21 19:55:39 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.21 19:55:40 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.10.21 19:55:40 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.21 19:55:40 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.21 19:55:40 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
nix drin in der NC
bei mir hat das Modul auf Anhieb funktioniert. Vielen Dank.
Allerdings bekomme auch ich ganz viele PERL Warnings in die Log Datei geschrieben:
2020.10.22 15:07:43 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
Zitat von: HeikoGr am 22 Oktober 2020, 15:19:51
bei mir hat das Modul auf Anhieb funktioniert. Vielen Dank.
Allerdings bekomme auch ich ganz viele PERL Warnings in die Log Datei geschrieben:
2020.10.22 15:07:43 1: PERL WARNING: Subroutine import redefined at FHEM/Meta.pm line 654.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine InitMod redefined at FHEM/Meta.pm line 670.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine Load redefined at FHEM/Meta.pm line 706.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine SetInternals redefined at FHEM/Meta.pm line 878.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine Get redefined at FHEM/Meta.pm line 901.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetModuleSourceOrigin redefined at FHEM/Meta.pm line 919.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetKeywordDesc redefined at FHEM/Meta.pm line 940.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsCore redefined at FHEM/Meta.pm line 956.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsInternal redefined at FHEM/Meta.pm line 961.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine GetModuleFilepath redefined at FHEM/Meta.pm line 993.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine ModuleIsPerlCore redefined at FHEM/Meta.pm line 1049.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __CopyMetaToInternals redefined at FHEM/Meta.pm line 1085.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __PutMetadata redefined at FHEM/Meta.pm line 1096.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetMetadata redefined at FHEM/Meta.pm line 1121.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GenerateKeywordsFromSupportCommunity redefined at FHEM/Meta.pm line 2426.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetPackages redefined at FHEM/Meta.pm line 2521.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetMaintainerdata redefined at FHEM/Meta.pm line 2556.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetSupportForum redefined at FHEM/Meta.pm line 2770.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __GetUpdatedata redefined at FHEM/Meta.pm line 2956.
2020.10.22 15:07:43 1: PERL WARNING: Subroutine __SetXVersion redefined at FHEM/Meta.pm line 3206.
Die Perlwarnings sollten allerdings nur bei einem Neustart von FHEM kommen. Nicht im laufenden Betrieb. Ist das bei Dir so?
Es sind im übrigen eigentlich nur Hinweise.
Grüße
@tomspatz und fr00sch
Leider sagen die Logausgaben das der Befehl an sich ohne Fehlerrückgabe ausgeführt wurde. Ich muss gestehen das ich diesbezüglich vorerst Ratlos bin.
Bei mir ist es anfangs auch so gewesen - war allerdings mein Fehler. mit falscher Pfadangabe ist es durchgelaufen mit Erfolgsmeldung nur ohne wirklichen Erfolg. Ohne Pfad bzw. nach löschen des angegeben Pfads und schreiben auf oberster Ebene hat es funktioniert...
gruß anton
Zitat von: antonwinden am 23 Oktober 2020, 07:21:43
Bei mir ist es anfangs auch so gewesen - war allerdings mein Fehler. mit falscher Pfadangabe ist es durchgelaufen mit Erfolgsmeldung nur ohne wirklichen Erfolg. Ohne Pfad bzw. nach löschen des angegeben Pfads und schreiben auf oberster Ebene hat es funktioniert...
gruß anton
Du hattest aber auch den Ordner angelegt dem Du im Pfad benannt hattest?
@tomspatz und fr00sch
Das wäre natürlich noch ein Test wert. Bitte einmal das Attribut für den Pfad löschen und dann testen. Und dann schauen wir mal.
Zitat von: CoolTux am 22 Oktober 2020, 16:38:13
Die Perlwarnings sollten allerdings nur bei einem Neustart von FHEM kommen. Nicht im laufenden Betrieb. Ist das bei Dir so?
Es sind im übrigen eigentlich nur Hinweise.
Ja, die Warnungen treten nur bei einem Neustart auf.
Unschön sind sie trotzdem :-D
Zitat von: CoolTux am 23 Oktober 2020, 07:34:27
Du hattest aber auch den Ordner angelegt dem Du im Pfad benannt hattest?
@tomspatz und fr00sch
Das wäre natürlich noch ein Test wert. Bitte einmal das Attribut für den Pfad löschen und dann testen. Und dann schauen wir mal.
Also:
1.) es ist mir sehr peinlich, aber ich habe beim Hostname die ganze Zeit einen Schreibfehler gehabt. :-X
1.1) ist etwas doof das da kein Fehler angezeigt wird
2.) Upload ins Hauptverzeichnis --> Datei ist vorhanden ;D
3.) Versuch ins Unterverzeichnis mit "/" --> Datei ist nicht vorhanden :-(
4.) Versuch ins Unterverzeichnis ohne "/" --> Datei ist nicht vorhanden :-(
zu 2.)
];
'uploadState: upload successfully'
'state: ready',
2020.10.23 13:39:39 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:39:39 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.23 13:39:39 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.23 13:39:39 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.23 13:39:38 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:37 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:36 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:35 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:34 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:33 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=5517)
];
'state: file upload in progress'
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.23 13:39:32 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 601
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-23 13:34:48 fhemBackupFile ./backup/FHEM-20201023_133448.tar.gz
2020-10-23 13:35:42 state ready
2020-10-23 13:35:42 uploadState upload successfully
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxxxx.de
bTS_Type Nextcloud
bTS_User yyyyyy
verbose 5
zu 3.)
];
'
</d:error>
<s:message>File with name //fhem-Backup could not be located</s:message>
<s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
'uploadState: <?xml version="1.0" encoding="utf-8"?>
'state: ready',
2020.10.23 13:44:23 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:44:23 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.23 13:44:23 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.23 13:44:23 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\">\n <s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>\n <s:message>File with name //fhem-Backup could not be located</s:message>\n</d:error>\n"}
</d:error>
<s:message>File with name //fhem-Backup could not be located</s:message>
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: <?xml version="1.0" encoding="utf-8"?>
2020.10.23 13:44:22 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:44:21 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:44:20 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:44:17 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.23 13:44:17 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=6305)
];
'state: file upload in progress'
2020.10.23 13:44:17 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:44:16 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.23 13:44:16 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.23 13:44:16 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 601
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-23 13:43:17 fhemBackupFile ./backup/FHEM-20201023_134317.tar.gz
2020-10-23 13:44:23 state ready
2020-10-23 13:44:23 uploadState <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<s:message>File with name //fhem-Backup could not be located</s:message>
</d:error>
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxx.de
bTS_Path /fhem-Backup
bTS_Type Nextcloud
bTS_User yyyyy
verbose 5
4.)
];
'
</d:error>
<s:message>Principal with name fr00schfhem-Backup not found</s:message>
<s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
'uploadState: <?xml version="1.0" encoding="utf-8"?>
'state: ready',
2020.10.23 13:48:10 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:48:10 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.23 13:48:10 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.23 13:48:10 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\" xmlns:s=\"http://sabredav.org/ns\">\n <s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>\n <s:message>Principal with name fr00schfhem-Backup not found</s:message>\n</d:error>\n"}
</d:error>
<s:message>Principal with name fr00schfhem-Backup not found</s:message>
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: <?xml version="1.0" encoding="utf-8"?>
2020.10.23 13:48:06 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:48:05 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:48:04 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=6831)
];
'state: file upload in progress'
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.23 13:48:03 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 601
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-23 13:47:10 fhemBackupFile ./backup/FHEM-20201023_134710.tar.gz
2020-10-23 13:48:10 state ready
2020-10-23 13:48:10 uploadState <?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Sabre\DAV\Exception\NotFound</s:exception>
<s:message>Principal with name fr00schfhem-Backup not found</s:message>
</d:error>
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxxxx.de
bTS_Path fhem-Backup
bTS_Type Nextcloud
bTS_User yyyyy
verbose 5
5.) nachdem ich den 2. Schreibfehler behoben habe :-X --> Upload war erfolgreich
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 601
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-23 14:21:55 fhemBackupFile ./backup/FHEM-20201023_142155.tar.gz
2020-10-23 14:22:59 state ready
2020-10-23 14:22:59 uploadState upload successfully
Attributes:
DbLogExclude .*
bTS_Host nc.xxxxx.de
bTS_Path /fhem_Backup
bTS_Type Nextcloud
bTS_User yyyyyyy
verbose 5
];
'uploadState: upload successfully'
'state: ready',
2020.10.23 14:22:59 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 14:22:59 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.10.23 14:22:59 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.10.23 14:22:59 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.10.23 14:22:58 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString:
2020.10.23 14:22:56 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 14:22:55 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 14:22:54 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 14:22:53 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 14:22:51 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=12034)
];
'state: file upload in progress'
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
2020.10.23 14:22:50 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
Backup done
@CoolTux: lässt sich das attribute "disable" noch einfügen?
Sehr schön, freut mich das es nun zu mindest bei einem funktioniert.
Ja das Attribut lässt sich noch einfügen. Ich kümmere mich am WE darum.
Grüße
Zitat von: CoolTux am 23 Oktober 2020, 07:34:27
Du hattest aber auch den Ordner angelegt dem Du im Pfad benannt hattest?
ja hatte ich :-) - aber mit einem Leerzeichen drinnen und beim Attribut ohne /
also schon mein Fehler nur halt nicht sofort ersichtlich da es keine Fehlermeldung gab....
gruß Anton
von mir auch noch das Feedback, leider ohne Erfolg. Mit oder ohne bTS_Path. Mit oder ohne bTS_Proto.
Jedesmal steht im log
ZitatuploadState: upload successfully
aber in der NC ist nüscht. Ich würde es ja gerne weite verfolgen aber wenn selbst in den Logs der NC Instanz nichts zu "sehen" ist...
LG
Tom
Ich kann da die Tage noch was im Log einbauen.
Dauert aber etwas.
gerne DANKE
Ich überarbeite gerade das Modul.
Ich habe als Setter nun active und inactive und als Attribute disable und disaledForIntervals.
Desweiteren habe ich die komplette Fehlerbehandlung verbessert. Nun kommen auch entsprechende Fehlermeldungen.
Gebt mir noch ein paar Tage dann habe ich auch was zum testen für Euch.
Grüße
Hallo zusammen,
ich habe nun die Beta-Version von SSFile - Integration der Synology File Station über mein contrib veröffentlicht.
Siehe -> https://forum.fhem.de/index.php/topic,115371.0.html
Die Verwendung der privaten Cloud zu Hause für Backup und Restore auf seine Synology ist nun über die API möglich.
@Cooltux, zu gegebener Zeit können wir uns dann mal der Integration in dein Modul widmen.
Grüße,
Heiko
Neue Version ist draußen. Bitte testet diese einmal. Es kann nun das Device disabled werden und außerdem kann ein disabledForIntervals gesetzt werden.
Grüße
@CoolTux:
Cool dankeschön.
attr TestBackup disable 1
funktioniert schonmal. Cool wäre die Möglichkeit auch "disable 0" zu übergeben, um es dynamisch immer ein- und auszuschalten, statt das Attribute löschen zu müssen.
Der Code:
attr TestBackup disabledForIntervals 1@00:00-6@24:00
wie es in https://fhem.de/commandref_DE.html#disabledForIntervals (https://fhem.de/commandref_DE.html#disabledForIntervals) beschrieben wird funktioniert leider nicht.
Hier kommt folgender Fehler auf:
check disabledForIntervals Syntax HH:MM-HH:MM or HH:MM-HH:MM HH:MM-HH:MM ...
Wäre cool, wenn eine der beiden Varianten funktionieren würde.
Bei mir gibt es für disable keine 0, entweder aktivieren oder entfernen.
Man kann auch set inaktive machen, geht dann flexibel und ohne Attribut.
Probiere mal bitte 13:00-13:30 16:00-23:00
So ist die korrekte Syntax.
Grüße
Wann genau wird eigentlich gesichert? mein device hat einmal in nextcloud ein file gesichert aber trotz neuer backup's tut sich nichts...
siehe list vom device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 941
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-31 23:50:00 fhemBackupFile ./backup/FHEM-20201031_235000.tar.gz
2020-10-20 23:50:54 state ready
2020-10-20 23:50:54 uploadState upload successfully
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
gruß anton
Zitat von: antonwinden am 01 November 2020, 14:34:56
Wann genau wird eigentlich gesichert? mein device hat einmal in nextcloud ein file gesichert aber trotz neuer backup's tut sich nichts...
siehe list vom device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 941
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.1.0
READINGS:
2020-10-31 23:50:00 fhemBackupFile ./backup/FHEM-20201031_235000.tar.gz
2020-10-20 23:50:54 state ready
2020-10-20 23:50:54 uploadState upload successfully
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
gruß anton
Mach bitte ein Update und teste dann noch mal.
Grüße
Update hab ich gemacht (von 1.1.0 auf 1.2.0) - zuerst keine Wirkung aber nach set active schreibt er das backup in meine cloud nur gibt es dabei eine Fehlermeldung:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 941
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-01 19:04:21 fhemBackupFile ./backup/FHEM-20201101_190421.tar.gz
2020-11-01 19:05:33 state ready
2020-11-01 19:05:33 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXXX
group Backup
room System
gruß anton
Stell mal bitte auf verbose 5 und starte noch mal. Dann das Log hier Posten oder mir privat zukommen lassen.
Zitat von: CoolTux am 31 Oktober 2020, 20:10:39
Bei mir gibt es für disable keine 0, entweder aktivieren oder entfernen.
Man kann auch set inaktive machen, geht dann flexibel und ohne Attribut.
Probiere mal bitte 13:00-13:30 16:00-23:00
So ist die korrekte Syntax.
Grüße
Die set-Funktion "active" und "inactive" löst mein Problem :-D, danke damit kann ich gut arbeiten.
Die Zeitenangabe, wie du es vorgeschlagen hast, funktioniert.
Vielen Dank für das Modul.
na ja - der erfolg mit fehlermeldung war nur von kurzer Dauer. Um Mitternacht hat es das tägliche Backup noch in die Cloud gespeichert seither ist nix.
hab es heute auf verbose 5 gestellt und backup angestoßen. Ergebnis:
2020.11.02 07:51:26.482 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 07:51:26.482 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.02 07:53:47.753 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 07:53:47.754 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 07:56:24.351 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 07:56:24.353 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 08:02:04.084 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:17:04.026 1: PERL WARNING: Argument "11.67 Celsius" isn't numeric in addition (+) at ./FHEM/98_feels_like.pm line 584.
2020.11.02 08:17:04.153 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:19:35.348 3: [FroniusWR] [fronius_setState] to connected
2020.11.02 08:20:03.986 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:22:49.201 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
2020.11.02 08:23:01.945 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:25:35.514 3: [FroniusWR] [fronius_setState] to connected
2020.11.02 08:26:03.786 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:28:49.503 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
2020.11.02 08:29:02.049 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.02 08:31:34.793 3: [FroniusWR] [fronius_setState] to connected
2020.11.02 08:32:04.087 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
keine ahnung warum und wieso es gestern ging mit fehlermeldung und heute hängt es wieder.
gruß anton
hab die anderen teile des logs gelöscht und nur jeweils die letzte Zeile vor backup... drinnen gelassen.
Er scheint nicht weiter zu machen weil der Timestamp des Readings für das Backupfile zu alt ist.
Mach mal bitte noch mal ein backup und danach sofort ein list vom Device. Verbose 5 bitte nicht vergessen.
List vom Device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 941
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-02 10:42:02 fhemBackupFile ./backup/FHEM-20201102_104202.tar.gz
2020-11-02 07:49:51 state ready
2020-11-01 23:51:13 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
log dazu:
2020.11.02 10:42:02.241 2: backup include:
2020.11.02 10:42:02.253 2: backup include:
2020.11.02 10:42:02.260 2: Backup with command: tar czf ./backup/FHEM-20201102_104202.tar.gz "./unused" "./GPL_V2.txt" "./fhem.cfg" "./fhem.cfg.default" "./alexa-fhem.cfg" "./www" "./log" "./configDB.pm" "./lib" "./COPYING" "./MAINTAINER.txt" "./HISTORY" "./UPGRADE" "./configDB.conf" "./CHANGED" "./contrib" "./demolog" "./Makefile" "./fhem.pl" "./README.SVN" "./fhem.cfg.demo" "./fhem.cfg.bak" "./webfrontend" "./README_DEMO.txt" "./docs" "./restoreDir" "./FHEM"
2020.11.02 10:42:09.714 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 10:42:09.715 4: backupToStorage (myNextcloudUpload) - Read password from file
Backup done
2020.11.02 10:43:23.175 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 10:43:23.175 4: backupToStorage (myNextcloudUpload) - push to storage function
danach bis jetzt (11:23) nur mehr Meldungen anderer Devices
wie erkennt man ob das Device aktiv ist?
gruß anton
Kannst bitte einmal im File /opt/fhem/lib/FHEM/backupToStorage.pm
in Zeile 383 das
if ( ReadingsAge($name,'fhemBackupFile',1) > 60 );
ändern in
if ( ReadingsAge($name,'fhemBackupFile',1) > 160 );
Und dann ein neustart machen
ergibt:
listInternals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-02 14:15:36 fhemBackupFile ./backup/FHEM-20201102_141536.tar.gz
2020-11-02 14:08:03 state ready
2020-11-01 23:51:13 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
log
2020.11.02 14:15:30.319 2: Backup with command: tar czf ./backup/FHEM-20201102_141530.tar.gz "./HISTORY" "./FHEM" "./alexa-fhem.cfg" "./contrib" "./lib" "./fhem.cfg" "./UPGRADE" "./docs" "./CHANGED" "./unused" "./Makefile" "./COPYING" "./demolog" "./configDB.conf" "./GPL_V2.txt" "./README.SVN" "./webfrontend" "./MAINTAINER.txt" "./fhem.cfg.bak" "./fhem.cfg.demo" "./fhem.cfg.default" "./www" "./restoreDir" "./configDB.pm" "./log" "./fhem.pl" "./README_DEMO.txt"
2020.11.02 14:15:36.323 2: backup include:
2020.11.02 14:15:36.331 2: backup include:
2020.11.02 14:15:36.337 2: Backup with command: tar czf ./backup/FHEM-20201102_141536.tar.gz "./HISTORY" "./lib" "./alexa-fhem.cfg" "./contrib" "./FHEM" "./fhem.cfg" "./UPGRADE" "./docs" "./CHANGED" "./Makefile" "./unused" "./COPYING" "./demolog" "./README.SVN" "./GPL_V2.txt" "./configDB.conf" "./webfrontend" "./fhem.cfg.bak" "./MAINTAINER.txt" "./www" "./fhem.cfg.default" "./fhem.cfg.demo" "./fhem.pl" "./README_DEMO.txt" "./log" "./configDB.pm" "./restoreDir"
2020.11.02 14:16:09.038 3: [FroniusWR] [fronius_setState] to connected
2020.11.02 14:16:09.250 3: [FroniusWR] [fronius_setState] to connected
2020.11.02 14:16:18.251 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String1__C resulted in undefined value
2020.11.02 14:16:25.011 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
Backup done
2020.11.02 14:16:34.734 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 14:16:34.734 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.02 14:16:34.734 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.02 14:16:34.759 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 14:16:34.782 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.02 14:16:34.783 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 14:16:34.785 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=2742852)
2020.11.02 14:16:34.785 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
Backup done
2020.11.02 14:16:35.122 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 14:16:35.122 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.02 14:16:35.122 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.02 14:16:35.152 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 14:16:35.173 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.02 14:16:35.174 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 14:16:35.176 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=2742877)
2020.11.02 14:16:35.176 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.02 14:16:35.791 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:36.231 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:36.812 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:37.244 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:37.815 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:38.246 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:38.816 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:39.303 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:39.818 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:40.320 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:40.823 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:41.322 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:41.835 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:42.323 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:42.842 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:45.661 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:45.662 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:46.662 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 14:16:46.666 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 214M 0 0 0 1248k 0 5971k 0:00:36 --:--:-- 0:00:36 5942k
1 214M 0 0 1 2752k 0 2274k 0:01:36 0:00:01 0:01:35 2272k
10 214M 0 0 10 22.4M 0 10.0M 0:00:21 0:00:02 0:00:19 10.0M
20 214M 0 0 20 44.3M 0 13.7M 0:00:15 0:00:03 0:00:12 13.7M
30 214M 0 0 30 66.2M 0 15.7M 0:00:13 0:00:04 0:00:09 15.7M
41 214M 0 0 41 88.6M 0 17.0M 0:00:12 0:00:05 0:00:07 17.4M
50 214M 0 0 50 107M 0 17.3M 0:00:12 0:00:06 0:00:06 20.9M
60 214M 0 0 60 130M 0 18.0M 0:00:11 0:00:07 0:00:04 21.6M
70 214M 0 0 70 151M 0 18.4M 0:00:11 0:00:08 0:00:03 21.3M
79 214M 0 0 79 171M 0 18.6M 0:00:11 0:00:09 0:00:02 21.0M
88 214M 0 0 88 189M 0 18.5M 0:00:11 0:00:10 0:00:01 20.1M
95 214M 0 0 95 205M 0 18.3M 0:00:11 0:00:11 --:--:-- 19.5M
100 214M 100 287 100 214M 24 18.4M 0:00:11 0:00:11 --:--:-- 19.1M
OCA\DAV\Connector\Sabre\Exception\FileLocked
"antonduernberger/files/fhem/FHEM-20201102_141536.tar.gz.upload.part" is locked
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 214M 0 0 0 1408k 0 2323k 0:01:34 --:--:-- 0:01:34 2319k
4 214M 0 0 4 9728k 0 6053k 0:00:36 0:00:01 0:00:35 6049k
14 214M 0 0 14 30.9M 0 11.8M 0:00:18 0:00:02 0:00:16 11.8M
23 214M 0 0 23 51.3M 0 14.2M 0:00:15 0:00:03 0:00:12 14.2M
33 214M 0 0 33 72.1M 0 15.6M 0:00:13 0:00:04 0:00:09 15.6M
42 214M 0 0 42 91.2M 0 16.2M 0:00:13 0:00:05 0:00:08 17.9M
52 214M 0 0 52 111M 0 16.8M 0:00:12 0:00:06 0:00:06 20.4M
61 214M 0 0 61 131M 0 17.3M 0:00:12 0:00:07 0:00:05 20.1M
70 214M 0 0 70 151M 0 17.6M 0:00:12 0:00:08 0:00:04 20.1M
80 214M 0 0 80 172M 0 17.9M 0:00:11 0:00:09 0:00:02 20.0M
89 214M 0 0 89 191M 0 18.0M 0:00:11 0:00:10 0:00:01 20.0M
98 214M 0 0 98 211M 0 18.2M 0:00:11 0:00:11 --:--:-- 20.0M
100 214M 0 0 100 214M 0 17.1M 0:00:12 0:00:12 --:--:-- 16.7M
curl: (92) Stream error in the HTTP/2 framing layer
2020.11.02 14:16:47.663 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"unknown error"}
2020.11.02 14:16:47.663 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.02 14:16:47.663 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.02 14:16:47.668 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: unknown error'
];
2020.11.02 14:16:47.668 4: backupToStorage (myNextcloudUpload) - Read password from file
jetzt hat er das File in die Cloud geladen - mit unknown error
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-02 14:15:36 fhemBackupFile ./backup/FHEM-20201102_141536.tar.gz
2020-11-02 14:16:47 state ready
2020-11-02 14:16:47 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
gruß anton
Ist das File wirklich sauber in der Cloud? Welche Nestcloud Version hast Du?
OK von mir jetzt auch etwas mehr mit der neuen Version.
2020.11.02 19:14:57 2: backup include:
2020.11.02 19:14:57 2: backup include:
2020.11.02 19:14:57 2: Backup with command: tar czf ./backup/FHEM-20201102_191457.tar.gz "./MAINTAINER.txt" "./GPL_V2.txt" "./FHEM" "./www" "./fhem.cfg.demo" "./fhem.cfg" "./lib" "./configDB.pm" "./restoreDir" "./CHANGED" "./demolog" "./README_DEMO.txt" "./log" "./fhem.pl" "./docs" "./contrib"
2020.11.02 19:15:09 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 19:15:14 2: backup include:
2020.11.02 19:15:14 2: backup include:
2020.11.02 19:15:14 2: Backup with command: tar czf ./backup/FHEM-20201102_191514.tar.gz "./restoreDir" "./CHANGED" "./demolog" "./configDB.pm" "./lib" "./fhem.cfg" "./contrib" "./fhem.pl" "./docs" "./log" "./README_DEMO.txt" "./GPL_V2.txt" "./MAINTAINER.txt" "./fhem.cfg.demo" "./FHEM" "./www"
Backup done
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=23930)
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.02 19:15:27 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:28 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:29 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:30 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:31 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"curl: (60) SSL certificate problem: self signed certificate"}
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: curl: (60) SSL certificate problem: self signed certificate'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-02 19:15:14 fhemBackupFile ./backup/FHEM-20201102_191514.tar.gz
2020-11-02 19:15:44 state ready
2020-11-02 19:15:44 uploadState curl: (60) SSL certificate problem: self signed certificate
Attributes:
bTS_Host nextcloud.xxxxx.de
bTS_Type Nextcloud
bTS_User fhem
verbose 5
Zitat von: tomspatz am 02 November 2020, 19:09:58
OK von mir jetzt auch etwas mehr mit der neuen Version.
2020.11.02 19:14:57 2: backup include:
2020.11.02 19:14:57 2: backup include:
2020.11.02 19:14:57 2: Backup with command: tar czf ./backup/FHEM-20201102_191457.tar.gz "./MAINTAINER.txt" "./GPL_V2.txt" "./FHEM" "./www" "./fhem.cfg.demo" "./fhem.cfg" "./lib" "./configDB.pm" "./restoreDir" "./CHANGED" "./demolog" "./README_DEMO.txt" "./log" "./fhem.pl" "./docs" "./contrib"
2020.11.02 19:15:09 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 19:15:14 2: backup include:
2020.11.02 19:15:14 2: backup include:
2020.11.02 19:15:14 2: Backup with command: tar czf ./backup/FHEM-20201102_191514.tar.gz "./restoreDir" "./CHANGED" "./demolog" "./configDB.pm" "./lib" "./fhem.cfg" "./contrib" "./fhem.pl" "./docs" "./log" "./README_DEMO.txt" "./GPL_V2.txt" "./MAINTAINER.txt" "./fhem.cfg.demo" "./FHEM" "./www"
Backup done
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=23930)
2020.11.02 19:15:26 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.02 19:15:27 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:28 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:29 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:30 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.02 19:15:31 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (60) SSL certificate problem: self signed certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"curl: (60) SSL certificate problem: self signed certificate"}
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.02 19:15:32 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: curl: (60) SSL certificate problem: self signed certificate'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.0
READINGS:
2020-11-02 19:15:14 fhemBackupFile ./backup/FHEM-20201102_191514.tar.gz
2020-11-02 19:15:44 state ready
2020-11-02 19:15:44 uploadState curl: (60) SSL certificate problem: self signed certificate
Attributes:
bTS_Host nextcloud.xxxxx.de
bTS_Type Nextcloud
bTS_User fhem
verbose 5
Na also, da haben wir doch das Problem. Du verwendest ein self signed certificate. Da muss ich einen zusätzlichen Parameter mit geben damit das klappt. Aber gut das Du das dann testen kannst.
Grüße
Ich habe soeben den curl Befehl für self signed certificate erweitert. Bitte einmal ein update machen und dann testen.
Grüße
ein update gibt eine Fehlermeldung:
backupToStorage
UPD FHEM/98_backupToStorage.pm
UPD lib/FHEM/backupToStorage.pm
Got 18436 bytes for lib/FHEM/backupToStorage.pm, expected 18433
aborting.
gruß anton
Zitat von: CoolTux am 28 Oktober 2020, 19:32:30
Ich überarbeite gerade das Modul.
Ich habe als Setter nun active und inactive und als Attribute disable und disaledForIntervals.
Desweiteren habe ich die komplette Fehlerbehandlung verbessert. Nun kommen auch entsprechende Fehlermeldungen.
Gebt mir noch ein paar Tage dann habe ich auch was zum testen für Euch.
Grüße
Ich habe etwas mit active und inactive getestet und dabei ist mir leider aufgefallen, dass sich das Modul von selbst wieder reaktiviert:
Fall 1: In dem Moment wo ich verbose auf 5 schalte ist das Modul wieder "ready" :-(
Event-Log:
2020-11-03 09:12:39 backupToStorage myNextcloudUpload inactive
2020-11-03 09:12:39 backupToStorage myNextcloudUpload disabled
2020-11-03 09:12:51 backupToStorage myNextcloudUpload ready
2020-11-03 09:12:51 Global global ATTR myNextcloudUpload verbose 5
Logging
2020.11.03 09:12:52 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'ATTR myNextcloudUpload verbose 5'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: ready'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Fall 2: Dabei habe ich ein DOIF namen "crontab" bearbeitet, aber nichts geändert, und auch hier stellt sich das Modul auf ready um:
Event-Log:
2020-11-03 09:14:04 backupToStorage myNextcloudUpload inactive
2020-11-03 09:14:04 backupToStorage myNextcloudUpload disabled
2020-11-03 09:14:34 backupToStorage myNextcloudUpload ready
Logging:
];
'MODIFIED crontab'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
];
'state: ready'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: inactive'
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Zitat von: antonwinden am 03 November 2020, 07:39:32
ein update gibt eine Fehlermeldung:
backupToStorage
UPD FHEM/98_backupToStorage.pm
UPD lib/FHEM/backupToStorage.pm
Got 18436 bytes for lib/FHEM/backupToStorage.pm, expected 18433
aborting.
gruß anton
Muss ich mir heute Abend anschauen.
Danke Dir
Zitat von: fr00sch am 03 November 2020, 09:20:29
Ich habe etwas mit active und inactive getestet und dabei ist mir leider aufgefallen, dass sich das Modul von selbst wieder reaktiviert:
Fall 1: In dem Moment wo ich verbose auf 5 schalte ist das Modul wieder "ready" :-(
Event-Log:
2020-11-03 09:12:39 backupToStorage myNextcloudUpload inactive
2020-11-03 09:12:39 backupToStorage myNextcloudUpload disabled
2020-11-03 09:12:51 backupToStorage myNextcloudUpload ready
2020-11-03 09:12:51 Global global ATTR myNextcloudUpload verbose 5
Logging
2020.11.03 09:12:52 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'ATTR myNextcloudUpload verbose 5'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: ready'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Fall 2: Dabei habe ich ein DOIF namen "crontab" bearbeitet, aber nichts geändert, und auch hier stellt sich das Modul auf ready um:
Event-Log:
2020-11-03 09:14:04 backupToStorage myNextcloudUpload inactive
2020-11-03 09:14:04 backupToStorage myNextcloudUpload disabled
2020-11-03 09:14:34 backupToStorage myNextcloudUpload ready
Logging:
];
'MODIFIED crontab'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
];
'state: ready'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: inactive'
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Schaue ich mir. Danke Dir.
Zitat von: antonwinden am 03 November 2020, 07:39:32
ein update gibt eine Fehlermeldung:
backupToStorage
UPD FHEM/98_backupToStorage.pm
UPD lib/FHEM/backupToStorage.pm
Got 18436 bytes for lib/FHEM/backupToStorage.pm, expected 18433
aborting.
gruß anton
Sollte erstmal gehen. Bitte noch mal testen.
Zitat von: fr00sch am 03 November 2020, 09:20:29
Ich habe etwas mit active und inactive getestet und dabei ist mir leider aufgefallen, dass sich das Modul von selbst wieder reaktiviert:
Fall 1: In dem Moment wo ich verbose auf 5 schalte ist das Modul wieder "ready" :-(
Event-Log:
2020-11-03 09:12:39 backupToStorage myNextcloudUpload inactive
2020-11-03 09:12:39 backupToStorage myNextcloudUpload disabled
2020-11-03 09:12:51 backupToStorage myNextcloudUpload ready
2020-11-03 09:12:51 Global global ATTR myNextcloudUpload verbose 5
Logging
2020.11.03 09:12:52 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'ATTR myNextcloudUpload verbose 5'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: ready'
2020.11.03 09:12:51 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Fall 2: Dabei habe ich ein DOIF namen "crontab" bearbeitet, aber nichts geändert, und auch hier stellt sich das Modul auf ready um:
Event-Log:
2020-11-03 09:14:04 backupToStorage myNextcloudUpload inactive
2020-11-03 09:14:04 backupToStorage myNextcloudUpload disabled
2020-11-03 09:14:34 backupToStorage myNextcloudUpload ready
Logging:
];
'MODIFIED crontab'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
];
'state: ready'
2020.11.03 09:14:34 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:15 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'state: inactive'
2020.11.03 09:14:04 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
Habe ich soeben gefixt. Kannst testen.
DANKE
Fehlermeldung ist noch immer vorhanden:
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.03 15:44:13.559 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.03 15:44:13.582 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.600 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:13.601 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.03 15:44:13.602 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.604 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=148674)
2020.11.03 15:44:13.605 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.03 15:44:14.607 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:15.609 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:16.610 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:17.612 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:18.352 1: PERL WARNING: Argument "17.11 Celsius" isn't numeric in addition (+) at ./FHEM/59_WUup.pm line 260.
2020.11.03 15:44:18.703 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:19.705 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:20.436 3: Akkustatus: Read callback: Error: read from http://192.168.1.200:80 timed out
2020.11.03 15:44:20.709 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:21.719 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:22.722 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:23.674 3: [FroniusWR] [fronius_setState] to connected
2020.11.03 15:44:23.725 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:24.132 3: [FroniusWR] [fronius_setState] to connected
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 218M 0 0 0 1408k 0 1786k 0:02:05 --:--:-- 0:02:05 1784k
9 218M 0 0 9 21.0M 0 11.7M 0:00:18 0:00:01 0:00:17 11.7M
16 218M 0 0 16 36.4M 0 13.0M 0:00:16 0:00:02 0:00:14 13.0M
26 218M 0 0 26 57.8M 0 15.2M 0:00:14 0:00:03 0:00:11 15.2M
35 218M 0 0 35 78.2M 0 16.3M 0:00:13 0:00:04 0:00:09 16.3M
45 218M 0 0 45 98.5M 0 17.0M 0:00:12 0:00:05 0:00:07 19.4M
57 218M 0 0 57 125M 0 18.4M 0:00:11 0:00:06 0:00:05 20.8M
69 218M 0 0 69 151M 0 19.5M 0:00:11 0:00:07 0:00:04 23.0M
81 218M 0 0 81 177M 0 20.1M 0:00:10 0:00:08 0:00:02 23.8M
93 218M 0 0 93 203M 0 20.8M 0:00:10 0:00:09 0:00:01 25.0M
100 218M 0 0 100 218M 0 20.3M 0:00:10 0:00:10 --:--:-- 24.1M
2020.11.03 15:44:24.725 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"unknown error"}
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.03 15:44:24.729 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:24.729 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: unknown error'
];
Device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-03 15:43:17 fhemBackupFile ./backup/FHEM-20201103_154316.tar.gz
2020-11-03 15:44:24 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
in Nextcloud ist das File komplett.
gruß anton
Zitat von: antonwinden am 03 November 2020, 16:18:50
Fehlermeldung ist noch immer vorhanden:
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.03 15:44:13.559 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.03 15:44:13.582 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.600 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:13.601 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.03 15:44:13.602 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.604 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=148674)
2020.11.03 15:44:13.605 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.03 15:44:14.607 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:15.609 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:16.610 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:17.612 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:18.352 1: PERL WARNING: Argument "17.11 Celsius" isn't numeric in addition (+) at ./FHEM/59_WUup.pm line 260.
2020.11.03 15:44:18.703 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:19.705 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:20.436 3: Akkustatus: Read callback: Error: read from http://192.168.1.200:80 timed out
2020.11.03 15:44:20.709 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:21.719 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:22.722 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:23.674 3: [FroniusWR] [fronius_setState] to connected
2020.11.03 15:44:23.725 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:24.132 3: [FroniusWR] [fronius_setState] to connected
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 218M 0 0 0 1408k 0 1786k 0:02:05 --:--:-- 0:02:05 1784k
9 218M 0 0 9 21.0M 0 11.7M 0:00:18 0:00:01 0:00:17 11.7M
16 218M 0 0 16 36.4M 0 13.0M 0:00:16 0:00:02 0:00:14 13.0M
26 218M 0 0 26 57.8M 0 15.2M 0:00:14 0:00:03 0:00:11 15.2M
35 218M 0 0 35 78.2M 0 16.3M 0:00:13 0:00:04 0:00:09 16.3M
45 218M 0 0 45 98.5M 0 17.0M 0:00:12 0:00:05 0:00:07 19.4M
57 218M 0 0 57 125M 0 18.4M 0:00:11 0:00:06 0:00:05 20.8M
69 218M 0 0 69 151M 0 19.5M 0:00:11 0:00:07 0:00:04 23.0M
81 218M 0 0 81 177M 0 20.1M 0:00:10 0:00:08 0:00:02 23.8M
93 218M 0 0 93 203M 0 20.8M 0:00:10 0:00:09 0:00:01 25.0M
100 218M 0 0 100 218M 0 20.3M 0:00:10 0:00:10 --:--:-- 24.1M
2020.11.03 15:44:24.725 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"unknown error"}
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.03 15:44:24.729 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:24.729 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: unknown error'
];
Device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-03 15:43:17 fhemBackupFile ./backup/FHEM-20201103_154316.tar.gz
2020-11-03 15:44:24 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
in Nextcloud ist das File komplett.
gruß anton
Im da muss ich meine RegEx anpassen. Dauert etwas.
Zitat von: CoolTux am 03 November 2020, 13:47:51
Habe ich soeben gefixt. Kannst testen.
DANKE
Ich konnte den Fehler nicht mehr reproduzieren, scheint gefixt zu sein.
Danke.
ha ha DANKESCHÖN für dieses Modul
rennt wie die sau ;)
Die Tage werde ich es in meinem produktiv System einbauen.
Habe es direkt ins root Verzeichniss sowohl auch mit Pfad ausprobiert, beides läuft.
OHNE bTS_Proto
Die "alten" Backups, die auf dem rpi lassen sich ja damit nicht löschen? Wäre das eine Option so etwas einzubauen oder bin ich da ganz falsch???
hier nochmal die logs bzw. das list falls du damit etwas anfangen kannst
2020.11.04 21:54:54 2: Backup with command: tar czf ./backup/FHEM-20201104_215454.tar.gz "./log" "./www" "./MAINTAINER.txt" "./docs" "./restoreDir" "./GPL_V2.txt" "./CHANGED" "./lib" "./demolog" "./fhem.cfg.demo" "./fhem.cfg" "./contrib" "./configDB.pm" "./README_DEMO.txt" "./fhem.pl" "./FHEM"
Backup done
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.04 21:55:22 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=26344)
2020.11.04 21:55:22 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.04 21:55:23 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:24 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:25 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:26 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:27 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:28 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:29 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:30 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:31 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.04 21:55:32 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
8 31.8M 0 0 8 2624k 0 479k 0:01:07 0:00:05 0:01:02 544k
23 31.8M 0 0 23 7712k 0 1190k 0:00:27 0:00:06 0:00:21 1601k
48 31.8M 0 0 48 15.5M 0 2122k 0:00:15 0:00:07 0:00:08 3297k
73 31.8M 0 0 73 23.4M 0 2829k 0:00:11 0:00:08 0:00:03 4986k
98 31.8M 0 0 98 31.4M 0 3396k 0:00:09 0:00:09 --:--:-- 6695k
100 31.8M 0 0 100 31.8M 0 2990k 0:00:10 0:00:10 --:--:-- 5532k
100 31.8M 0 0 100 31.8M 0 2989k 0:00:10 0:00:10 --:--:-- 5627k
2020.11.04 21:55:33 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.11.04 21:55:33 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.04 21:55:33 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.04 21:55:33 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.04 21:55:33 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Internals:
FUUID 5f8c60da-f33f-a28b-3e51-7fca3212df09c53a
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 19
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-04 21:54:54 fhemBackupFile ./backup/FHEM-20201104_215454.tar.gz
2020-11-04 21:55:33 state ready
2020-11-04 21:55:33 uploadState upload successfully
Attributes:
bTS_Host nextcloud.xxxxx.de
bTS_Path /FHEM-Backup
bTS_Type Nextcloud
bTS_User fhem
verbose 5
Zitat von: antonwinden am 03 November 2020, 16:18:50
Fehlermeldung ist noch immer vorhanden:
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.03 15:44:13.558 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.03 15:44:13.559 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.03 15:44:13.582 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.600 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:13.601 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.03 15:44:13.602 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.03 15:44:13.604 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=148674)
2020.11.03 15:44:13.605 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.03 15:44:14.607 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:15.609 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:16.610 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:17.612 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:18.352 1: PERL WARNING: Argument "17.11 Celsius" isn't numeric in addition (+) at ./FHEM/59_WUup.pm line 260.
2020.11.03 15:44:18.703 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:19.705 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:20.436 3: Akkustatus: Read callback: Error: read from http://192.168.1.200:80 timed out
2020.11.03 15:44:20.709 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:21.719 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:22.722 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:23.674 3: [FroniusWR] [fronius_setState] to connected
2020.11.03 15:44:23.725 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.03 15:44:24.132 3: [FroniusWR] [fronius_setState] to connected
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 218M 0 0 0 1408k 0 1786k 0:02:05 --:--:-- 0:02:05 1784k
9 218M 0 0 9 21.0M 0 11.7M 0:00:18 0:00:01 0:00:17 11.7M
16 218M 0 0 16 36.4M 0 13.0M 0:00:16 0:00:02 0:00:14 13.0M
26 218M 0 0 26 57.8M 0 15.2M 0:00:14 0:00:03 0:00:11 15.2M
35 218M 0 0 35 78.2M 0 16.3M 0:00:13 0:00:04 0:00:09 16.3M
45 218M 0 0 45 98.5M 0 17.0M 0:00:12 0:00:05 0:00:07 19.4M
57 218M 0 0 57 125M 0 18.4M 0:00:11 0:00:06 0:00:05 20.8M
69 218M 0 0 69 151M 0 19.5M 0:00:11 0:00:07 0:00:04 23.0M
81 218M 0 0 81 177M 0 20.1M 0:00:10 0:00:08 0:00:02 23.8M
93 218M 0 0 93 203M 0 20.8M 0:00:10 0:00:09 0:00:01 25.0M
100 218M 0 0 100 218M 0 20.3M 0:00:10 0:00:10 --:--:-- 24.1M
2020.11.03 15:44:24.725 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"unknown error"}
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.03 15:44:24.726 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.03 15:44:24.729 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.03 15:44:24.729 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: unknown error'
];
Device:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-03 15:43:17 fhemBackupFile ./backup/FHEM-20201103_154316.tar.gz
2020-11-03 15:44:24 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
in Nextcloud ist das File komplett.
gruß anton
Dank tomspatz konnte ich rausfinden wieso der Parser bei Dir nicht sauber gearbeitet hat. Ich habe nun ein fix eingecheckt. Bitte teste einmal.
Grüße
Ich weiß nicht warum aber jetzt macht das Modul nichts mehr...
Hab ein update gemacht, einmal set active gemacht - keine Ahnung was das macht denn ein list sagt nicht ob es aktiv oder deaktiviert ist:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-05 16:31:22 fhemBackupFile ./backup/FHEM-20201105_163122.tar.gz
2020-11-05 16:31:10 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
es passiert auch nach 20 Minuten noch nichts...:
2020.11.05 16:30:42.538 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:30:58.498 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:04.233 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:04.234 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:10.784 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.05 16:31:10.785 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready'
];
2020.11.05 16:31:10.785 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:10.933 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:10.934 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:12.289 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.05 16:31:22.732 2: Backup with command: tar czf ./backup/FHEM-20201105_163122.tar.gz "./alexa-fhem.cfg" "./lib" "./UPGRADE" "./configDB.pm" "./README.SVN" "./unused" "./CHANGED" "./webfrontend" "./demolog" "./Makefile" "./restoreDir" "./docs" "./fhem.cfg.demo" "./contrib" "./README_DEMO.txt" "./GPL_V2.txt" "./configDB.conf" "./www" "./fhem.cfg.bak" "./log" "./FHEM" "./MAINTAINER.txt" "./COPYING" "./fhem.cfg" "./fhem.pl" "./fhem.cfg.default" "./HISTORY"
Backup done
2020.11.05 16:32:48.870 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.05 16:32:48.870 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.05 16:44:25.090 3: [FroniusWR] [fronius_setState] to connected
2020.11.05 16:44:26.277 3: [FroniusWR] [fronius_setState] to connected
2020.11.05 16:44:30.599 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String1__C resulted in undefined value
2020.11.05 16:44:36.943 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
2020.11.05 16:45:25.094 3: [FroniusWR] [fronius_setState] to connected
2020.11.05 16:45:25.854 3: [FroniusWR] [fronius_setState] to connected
sorry anton
Er scheint zu lange für das Backup zu brauchen. Ich muss mir das noch mal anschauen. Werde am besten die Zeit höher setzen.
Was ist wenn du jetzt noch mal backup ausführst?
keine Änderung - log schaut genauso aus wie im vorherigen post also spare ich mir das hier.
Was ich mich aber immer noch frage ist wie ich merke ob das Device aktiv oder inaktiv ist? Es gibt kein Reading dafür zumindestens sehe ich nix und im list ist auch nichts ....
gruß anton
Sobald der state ready ist ist das Device aktiv.
Kannst Du mir noch mal ein list und ein Log 5 geben nach dem du backup ausgeführt hast?
Grüße
list:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.1
READINGS:
2020-11-06 10:04:03 fhemBackupFile ./backup/FHEM-20201106_100403.tar.gz
2020-11-06 08:47:01 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
Log
2020.11.06 10:03:00.048 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'UNDEFINED KNX_0106053 KNX 1/6/53:MODEL_NOT_DEFINED'
];
2020.11.06 10:03:44.433 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.06 10:03:46.857 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.06 10:03:46.858 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.06 10:04:03.441 2: Backup with command: tar czf ./backup/FHEM-20201106_100403.tar.gz "./fhem.cfg.default" "./HISTORY" "./fhem.pl" "./fhem.cfg" "./log" "./FHEM" "./fhem.cfg.bak" "./www" "./MAINTAINER.txt" "./COPYING" "./README_DEMO.txt" "./configDB.conf" "./GPL_V2.txt" "./Makefile" "./restoreDir" "./docs" "./fhem.cfg.demo" "./contrib" "./unused" "./CHANGED" "./webfrontend" "./demolog" "./alexa-fhem.cfg" "./UPGRADE" "./lib" "./README.SVN" "./configDB.pm"
2020.11.06 10:04:37.287 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
Backup done
2020.11.06 10:05:26.284 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.06 10:05:26.285 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.06 10:11:26.983 3: [FroniusWR] [fronius_setState] to connected
2020.11.06 10:11:27.176 3: [FroniusWR] [fronius_setState] to connected
kein backup in nextcloud...
gruß anton
Ok mal davon ab das Du noch die Vorversion hast ist es bei Dir wohl ein Timingproblem. Ich habe die Zeit mal etwas höher gesetzt. Mach bitte ein update und dann neustart. Danach noch mal testen bitte.
list:
Internals:
FUUID 5f8e8966-f33f-d8e8-e14b-c47c07d54137b080
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 940
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.3
READINGS:
2020-11-06 12:06:41 fhemBackupFile ./backup/FHEM-20201106_120641.tar.gz
2020-11-06 11:55:21 state ready
2020-11-03 15:44:24 uploadState unknown error
Attributes:
bTS_Host nextcloud.XXX.eu
bTS_Path /fhem
bTS_Type Nextcloud
bTS_User XXX
group Backup
room System
verbose 5
2020.11.06 12:06:41.563 2: Backup with command: tar czf ./backup/FHEM-20201106_120641.tar.gz "./HISTORY" "./restoreDir" "./www" "./alexa-fhem.cfg" "./README_DEMO.txt" "./unused" "./log" "./contrib" "./COPYING" "./GPL_V2.txt" "./demolog" "./MAINTAINER.txt" "./Makefile" "./webfrontend" "./fhem.cfg" "./docs" "./configDB.pm" "./UPGRADE" "./fhem.cfg.bak" "./lib" "./CHANGED" "./configDB.conf" "./fhem.cfg.demo" "./FHEM" "./README.SVN" "./fhem.pl" "./fhem.cfg.default"
2020.11.06 12:06:58.807 1: PERL WARNING: Argument "73 %" isn't numeric in multiplication (*) at ./FHEM/98_feels_like.pm line 869.
2020.11.06 12:06:58.817 1: PERL WARNING: Argument "73 %" isn't numeric in multiplication (*) at ./FHEM/98_feels_like.pm line 1215.
2020.11.06 12:06:58.818 1: PERL WARNING: Argument "73 %" isn't numeric in division (/) at ./FHEM/98_feels_like.pm line 581.
2020.11.06 12:07:26.647 3: [FroniusWR] [fronius_setState] to connected
2020.11.06 12:07:27.630 3: [FroniusWR] [fronius_setState] to connected
2020.11.06 12:07:36.132 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String1__C resulted in undefined value
2020.11.06 12:07:43.440 3: FroniusMPPT: ParseObj unpack of 8000 with f> for Temp_String2__C resulted in undefined value
Backup done
2020.11.06 12:08:06.748 4: backupToStorage (myNextcloudUpload) - Devname: global Name: myNextcloudUpload Notify: $VAR1 = [
'backup done'
];
2020.11.06 12:08:06.748 4: backupToStorage (myNextcloudUpload) - push to storage function
2020.11.06 12:08:06.748 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.11.06 12:08:06.773 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.06 12:08:06.793 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.06 12:08:06.794 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: file upload in progress'
];
2020.11.06 12:08:06.795 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.11.06 12:08:06.804 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID=241076)
2020.11.06 12:08:06.804 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.11.06 12:08:07.806 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:08.809 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:09.811 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:10.816 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:11.818 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:12.820 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:13.825 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:14.827 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:15.830 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:16.839 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:17.965 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:18.972 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:19.974 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:20.979 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:21.991 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.11.06 12:08:22.994 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 240M 0 0 0 1408k 0 2370k 0:01:43 --:--:-- 0:01:43 2366k
0 240M 0 0 0 1408k 0 884k 0:04:38 0:00:01 0:04:37 884k
9 240M 0 0 9 22.9M 0 9061k 0:00:27 0:00:02 0:00:25 9058k
18 240M 0 0 18 44.2M 0 12.3M 0:00:19 0:00:03 0:00:16 12.3M
24 240M 0 0 24 58.8M 0 12.8M 0:00:18 0:00:04 0:00:14 12.8M
33 240M 0 0 33 81.7M 0 14.6M 0:00:16 0:00:05 0:00:11 16.0M
42 240M 0 0 42 102M 0 15.5M 0:00:15 0:00:06 0:00:09 20.2M
49 240M 0 0 49 118M 0 15.5M 0:00:15 0:00:07 0:00:08 19.0M
56 240M 0 0 56 135M 0 15.7M 0:00:15 0:00:08 0:00:07 18.1M
63 240M 0 0 63 152M 0 15.8M 0:00:15 0:00:09 0:00:06 18.6M
68 240M 0 0 68 165M 0 15.5M 0:00:15 0:00:10 0:00:05 16.6M
74 240M 0 0 74 178M 0 15.3M 0:00:15 0:00:11 0:00:04 15.0M
82 240M 0 0 82 199M 0 15.8M 0:00:15 0:00:12 0:00:03 16.3M
91 240M 0 0 91 219M 0 16.1M 0:00:14 0:00:13 0:00:01 16.9M
96 240M 0 0 96 232M 0 15.9M 0:00:15 0:00:14 0:00:01 16.0M
100 240M 0 0 100 240M 0 14.6M 0:00:16 0:00:16 --:--:-- 13.0M
100 240M 0 0 100 240M 0 14.5M 0:00:16 0:00:16 --:--:-- 12.7M
2020.11.06 12:08:23.995 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2020.11.06 12:08:23.995 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2020.11.06 12:08:23.995 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2020.11.06 12:08:24.000 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.11.06 12:08:24.001 4: backupToStorage (myNextcloudUpload) - Devname: myNextcloudUpload Name: myNextcloudUpload Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
2020.11.06 12:08:24.001 4: backupToStorage (myNextcloudUpload) - Read password from file
jetzt geht es wieder und File ist vollständig in der Cloud.
Danke Anton
cooles Ding - erweiterst Du das noch für den Einsatz von Synology NAS?
Hi,
der Teil für Synology NAS ist bereits zum Test bereitgestellt. Dafür gibt es einen eigenen Thread da es ein eigenständiges Modul ist und auch so verwendet werden kann.
Es ist die Beta-Version von SSFile - Integration der Synology File Station über mein contrib veröffentlicht.
Siehe -> https://forum.fhem.de/index.php/topic,115371.0.html
Die Verwendung der privaten Cloud zu Hause für Backup und Restore auf seine Synology ist nun über die API möglich.
Sobald CoolTux soweit ist, machen wir die Integration von backupToStorage mit SSFile damit das Backup integriert abläuft.
Grüße,
Heiko
Hey,
ich habe das Modul jetzt etwas länger getestet, um eigene Fehler/Dummheit auszuschließen, und habe festgestellt, dass sich das Gerät selbst wieder aktiviert. :-/
Wenn ich: "set myNextcloudUpload inactive" mache, wird mir das Gerät als "disabled" angzeigt.
Wenn ich dann "backup" starte passiert folgendes:
2020.12.03 08:00:06 4: backupToStorage (myNextcloudUpload) -
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
3 96.1M 0 0 3 3824k 0 4985k 0:00:19 --:--:-- 0:00:19 4985k
5 96.1M 0 0 5 5376k 0 3042k 0:00:32 0:00:01 0:00:31 3040k
18 96.1M 0 0 18 17.9M 0 6626k 0:00:14 0:00:02 0:00:12 6624k
29 96.1M 0 0 29 28.2M 0 7675k 0:00:12 0:00:03 0:00:09 7673k
37 96.1M 0 0 37 36.4M 0 7822k 0:00:12 0:00:04 0:00:08 7822k
48 96.1M 0 0 48 46.2M 0 8212k 0:00:11 0:00:05 0:00:06 8707k
53 96.1M 0 0 53 51.7M 0 7789k 0:00:12 0:00:06 0:00:06 9455k
65 96.1M 0 0 65 62.9M 0 8292k 0:00:11 0:00:07 0:00:04 9216k
78 96.1M 0 0 78 75.3M 0 8798k 0:00:11 0:00:08 0:00:03 9645k
85 96.1M 0 0 85 82.2M 0 8628k 0:00:11 0:00:09 0:00:02 9397k
99 96.1M 0 0 99 96.0M 0 9139k 0:00:10 0:00:10 --:--:-- 9.9M
100 96.1M 0 0 100 96.1M 0 8831k 0:00:11 0:00:11 --:--:-- 10.2M
Dload Upload Total Spent Left Speed
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 72057594037927935 , returnString: % Total % Received % Xferd Average Speed Time Time Time Current
];
Notify: $VAR1 = [
Name: myNextcloudUpload
Devname: global
2020.12.03 08:00:06 4: backupToStorage (myNextcloudUpload) -
2020.12.03 08:00:00 4: backupToStorage (myNextcloudUpload) -
2020.12.03 07:59:59 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.12.03 07:59:58 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.12.03 07:59:57 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.12.03 07:59:56 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.12.03 07:59:52 5: backupToStorage (myNextcloudUpload) - still waiting (read: no data).
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID="2631")
];
'state: file upload in progress'
Notify: $VAR1 = [
Name: myNextcloudUpload
Devname: myNextcloudUpload
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) -
2020.12.03 07:59:51 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) - after readings age return
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) - push to storage function
];
'backup done'
Notify: $VAR1 = [
Name: myNextcloudUpload
Devname: global
2020.12.03 07:59:51 4: backupToStorage (myNextcloudUpload) -
Backup done
tar: Entferne führende ,,/" von Zielen harter Verknüpfungen
tar: Entferne führende ,,/" von Elementnamen
2020.12.03 07:58:25 2: Backup with command: tar czf ./backup/FHEM-20201203_075825.tar.gz "./FHEM" "./contrib_old" "./babbleFILE" "./configDB.pm" "./contrib" "./GPL_V2.txt" "./Z_Wave_EG.bin" "./fhem.cfg" "./configDB.conf" "/opt/fhem/fhem-config.db" "./www" "configDB.conf" "./CHANGED" "./db.conf" "./log" "./backup.sh" "./kalender.ics" "./dead.letter" "./fhem.db" "./config" "./MAINTAINER.txt" "./restoreDir" "./docs" "./db_remote.conf" "./unused" "./changelog.txt" "./fhem-config.db" "./fhem.pl" "./gassistant-fhem.cfg.previous" "./fhem_homematic.cfg" "./gassistant-fhem.cfg" "./lib" "./demolog" "./certs" "./db_container.conf" "./info" "./README_DEMO.txt"
2020.12.03 07:58:25 2: backup include SQLite DB File: /opt/fhem/fhem-config.db
2020.12.03 07:58:25 2: backup include: 'configDB.conf'
2020.12.03 07:58:25 1: NOTE: make sure you have a database backup!
2020.12.03 07:58:19 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:58:19 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:58:19 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:58:19 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:58:19 4: backupToStorage (myNextcloudUpload) - Read password from file
2020.12.03 07:58:18 4: backupToStorage (myNextcloudUpload) - Read password from file
];
'ATTR myNextcloudUpload verbose 5'
Notify: $VAR1 = [
Name: myNextcloudUpload
Devname: global
2020.12.03 07:58:18 4: backupToStorage (myNextcloudUpload) -
Und das Gerät ist danach wieder "enabled"
list:
Internals:
FUUID 5f8e8113-f33f-daea-d4a4-53a4b70729992cc3
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 572
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.3
READINGS:
2020-12-03 07:58:25 fhemBackupFile ./backup/FHEM-20201203_075825.tar.gz
2020-12-03 08:00:20 state ready
2020-12-03 08:00:20 uploadState upload successfully
Attributes:
DbLogExclude .*
bTS_Host xyz.xyz.de
bTS_Path /fhem_Backup
bTS_Type Nextcloud
bTS_User xyzxyz
room System->Allgemein
verbose 0
Grüße
Guten Morgen,
Vielen Dank für das testen. Ich schaue es mir die Tage mal an.
Grüße
@CoolTux: Ein schönes Neues Jahr 8)
Hattest du die Chance dir das nochmal anzusehen?
Habe es heute gefixt. Vielen Dank für Deine Hartnäckigkeit.
@CoolTux: Vielen vielen Dank! Hab es gerade ausführlich getestet und es hat gut geklappt.
Hi CoolTux.
Geniales Modul, danke dafür. Funktioniert super bei mir in der Nextcloud.
Ist vielleicht noch geplant oder währe es möglich, eine Funktion einzubauen, das die Anzahl der Backups begrenzt werden kann.
Ein Beispiel: Ich mache ein wöchentliches Backup und das Script lädt die in die Cloud, sind es 8 Backups, wird das achte Backup automatisch gelöscht.
Gruß ErzGabriel
Zitat von: ErzGabriel am 14 März 2021, 08:33:23
Hi CoolTux.
Geniales Modul, danke dafür. Funktioniert super bei mir in der Nextcloud.
Ist vielleicht noch geplant oder währe es möglich, eine Funktion einzubauen, das die Anzahl der Backups begrenzt werden kann.
Ein Beispiel: Ich mache ein wöchentliches Backup und das Script lädt die in die Cloud, sind es 8 Backups, wird das achte Backup automatisch gelöscht.
Gruß ErzGabriel
Hallo,
Es ist in der Tat geplant sowas ein zu bauen. Wird aber wohl noch etwas dauern.
https://git.cooltux.net/FHEM/mod-backupToStorage/issues/2
Ich habe mich heute morgeen auch versucht die FHEM Backups auf dem Sysnology abzulegen - so ganz rund läuft das noch nicht...
Bleibst Du was die Integration von DS_Starters SSFile angeht auch am Ball..?
Zitat von: der-Lolo am 14 März 2021, 11:13:16
Ich habe mich heute morgeen auch versucht die FHEM Backups auf dem Sysnology abzulegen - so ganz rund läuft das noch nicht...
Bleibst Du was die Integration von DS_Starters SSFile angeht auch am Ball..?
Ja natürlich. Soweit es meine Zeit zu lässt. Aktuell habe ich null Zeit dafür. Ich habe mit Heiko schon vor Monaten über die Integration gesprochen und mir die Schnittstelle zu seinem Modul beschreiben lassen. Einzig die Integration selbst fehlt leider noch. Sorry.
Hallo Marko,
ich wollte Dein Modul testen, komme aber nicht weiter.
Seit längerer Zeit benutze ich ein Notify mit einem eingebetteten at um den aktuellen Gasverbrauch meiner Heizung
mittels eines GPIOGaszaehler in m3/Std in einen Dummy schreiben zu lassen.
Dies funktioniert tadellos, jedoch scheint dein Modul jetzt auch darauf aufzusetzen.
Wenn ich backupToStorage mit verbose 5 laufen lasse erscheint im log:
2021.03.19 17:55:38.722 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'MODIFIED tmp_time_gas'
];
Es funktioniert natürlich nicht und normal sollte doch sein?:
2021.03.20 14:24:01 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'backup done'
];
Hast du eine Idee??
MfG Uwe
Hallo Uwe,
Die Ausgabe für verbose 5 ist korrekt. Das Modul selbst triggert auch bei globalen Events, was bei Deinem Log der Fall ist. Es verarbeitet aber diesen Event dann nicht weiter da der globale Event für das Modul unwichtig ist.
Die Frage die ich mir jetzt stelle, wo genau kommst Du nicht weiter? Funktioniert der Upload nicht? Hast Du mal manuell backup ausgeführt?
Hallo Marko,
ok Danke. Habe jetzt auf einem anderen RPI zum Test auch eingerichtet und das gleiche Problem.
Backup wird erstellt -> backupToStorage triggert aber lädt nichts hoch, kommt aber auch keine Fehlermeldung.
2021.03.20 14:18:43 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'ATTR myNextcloudUpload verbose 5'
];
2021.03.20 14:18:43 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:18:51 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'SAVE'
];
2021.03.20 14:18:59 2: Backup with command: tar czf ./backup/FHEM-20210320_141859.tar.gz "./ferien.ics" "./docs" "./feiertage.ics" "./lib" "./log" "./AlarmFILE" "./certs" "./fhem.cfg-org" "./YAAHMFILE" "./fhem.pl" "./www" "./unused" "./HM-Firmware" "./restoreDir" "./fhem.cfg" "./FHEM" "./demolog" "./muell.ics" "./README_DEMO.txt" "./contrib" "./fhem.cfg.demo" "./GPL_V2.txt" "./configDB.pm" "./CHANGED" "./MAINTAINER.txt"
2021.03.20 14:18:59 3: telnetForBlockingFn_1616246339: port 43119 opened
2021.03.20 14:18:59 3: backup : Started the backup in the background, watch the log for details
Backup done
2021.03.20 14:24:01 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'backup done'
];
2021.03.20 14:24:01 4: backupToStorage (myNextcloudUpload) - push to storage function
2021.03.20 14:34:59 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:35:09 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:35:09 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:43:41 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:43:56 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 14:43:56 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 16:41:24 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 16:41:30 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 16:41:45 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 16:41:54 4: backupToStorage (myNextcloudUpload) - Read password from file
2021.03.20 16:41:54 4: backupToStorage (myNextcloudUpload) - Read password from file
jump to the top
und in den Readings ist nichts zun sehen.
Nextcloud läuft allerdings im gleichen Netzwerk aber die DNS Auflösung funktioniert und
von anderen Rechnern im gleichen Netz komme ich auch auf den Nextcloud...
und das Passwort habe ich auch geprüft.
Hier noch das list:
Internals:
CFGFN
FUUID 6055f4d2-f33f-0309-9923-061e958a4899c725
NAME myNextcloudUpload
NOTIFYDEV global,myNextcloudUpload
NR 155
NTFY_ORDER 51-myNextcloudUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.3
READINGS:
2021-03-20 14:18:59 fhemBackupFile ./backup/FHEM-20210320_141859.tar.gz
2021-03-20 14:18:05 state ready
Attributes:
bTS_Host next.xxxx.de
bTS_Path /fhem_Backup_RPI3
bTS_User FHEM
group Backup
room System
verbose 5
Hast du noch eine Idee??
MfG Uwe
Hallo Uwe,
Sieht so aus als wenn Dein Backup relativ lange laufen würde. Kannst Du mir sagen ob es länger wie 3 Minuten läuft?
Grüße
Marko
Hallo Marko,
ich denke ja...
2021.03.20 17:41:58 3: backup : Started the backup in the background, watch the log for details
Backup done
2021.03.20 17:46:42 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'backup done'
];
2021.03.20 17:46:42 4: backupToStorage (myNextcloudUpload) - push to storage function
scheinen auf dem Testsystem knapp 5 Min. zu sein...
MfG Uwe
Traust Du Dir zu Zeile 403
if ( ReadingsAge($name,'fhemBackupFile',1) > 180 );
zu ändern in
if ( ReadingsAge($name,'fhemBackupFile',1) > 600 );
Das sind dann 10min das sollte locker reichen.
Und dann neustart machen.
Hallo Marko,
Danke es funktioniert jetzt :
90 116M 0 0 90 105M 0 1404k 0:01:24 0:01:17 0:00:07 1456k
93 116M 0 0 93 108M 0 1427k 0:01:23 0:01:18 0:00:05 1818k
96 116M 0 0 96 112M 0 1453k 0:01:21 0:01:19 0:00:02 2236k
99 116M 0 0 99 115M 0 1474k 0:01:20 0:01:20 --:--:-- 2601k
100 116M 0 321 100 116M 3 1480k 0:01:20 0:01:20 --:--:-- 2931k
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>OCA\DAV\Connector\Sabre\Exception\FileLocked</s:exception>
<s:message>"FHEM/files/fhem_Backup_RPI3/FHEM-20210320_193246.tar.gz.upload.part" is locked, existing lock on file: exclusive</s:message>
</d:error>
2021.03.20 19:40:03 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2021.03.20 19:40:03 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2021.03.20 19:40:03 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2021.03.20 19:40:03 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2021.03.20 19:40:03 4: backupToStorage (myNextcloudUpload) -
Devname: myNextcloudUpload
Name: myNextcloudUpload
Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
jump to the top
es funktioniert auf dem Testsystem mit RPI3 und auch Fhem auf einem RPI4 in Docker ...
habe noch auf 900 sec angepasst, da der Test-PI 5Min. und der in Docker fast 10 Min. benötigte.
vielleicht kannst Du das noch anpassen? oder evtl. auch als Attribut?
auf einer FritzBox funktioniert es nicht, hier scheint es aber an der Version von curl zu liegen.
Ist aber nicht so wichtig, habe hier nur Interesse halber getestet.
Nutze da die Funktion in TBflex-3.1 und das reicht mir....
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) -
Devname: global
Name: myNextcloudUpload
Notify: $VAR1 = [
'backup done'
];
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) - push to storage function
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) - after readings age return
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) - Read password from file
sh: illegal option -k
backupToStorage File Upload - FileUpload Nextcloud, returnCode: 16777215 , returnString:
2021.03.20 19:42:27 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) -
Devname: myNextcloudUpload
Name: myNextcloudUpload
Notify: $VAR1 = [
'state: file upload in progress'
];
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) - execute command asynchronously (PID="5460")
2021.03.20 19:42:27 4: backupToStorage (myNextcloudUpload) - control passed back to main loop.
2021.03.20 19:42:28 4: backupToStorage (myNextcloudUpload) - got result from asynchronous parsing: {"ncUpload":"unknown error"}
2021.03.20 19:42:28 4: backupToStorage (myNextcloudUpload) - asynchronous finished.
2021.03.20 19:42:28 4: backupToStorage (myNextcloudUpload) - clean Subprocess
2021.03.20 19:42:28 3: backupToStorage (myNextcloudUpload) - _CheckIsDisabledAfterSetAttr
2021.03.20 19:42:28 4: backupToStorage (myNextcloudUpload) -
Devname: myNextcloudUpload
Name: myNextcloudUpload
Notify: $VAR1 = [
'state: ready',
'uploadState: unknown error'
];
Danke noch mal und schönen Abend noch
VG Uwe
Hallo zusammen,
ich habe hier zufällig diesen Beitrag gefunden und die Idee ein BackUp auf dem NAS zu sichern ist super!
Leider habe ich ein Qnap und die Einstellungen, wie im ersten Beitrag funktionieren bei mir nicht.
Ein User Fhem mit Passwort ist auf dem Qnap angelegt. Ebenso ein eigener Ordner mit entsprechenden Rechten.
Nach einem Test- BackUp wurde nichts geschrieben. Was mache ich falsch? Kann man das Modul nicht für Qnap nutzen?
Hier ein List
Internals:
.FhemMetaInternals 1
CFGFN
FUUID 605684ed-f33f-0fc8-85c1-2007203c683c8ad2
NAME NAS_BackUp
NOTIFYDEV global,NAS_BackUp
NR 3635
NTFY_ORDER 51-NAS_BackUp
STATE ready
STORAGETYPE SynologyFileStation
TYPE backupToStorage
VERSION v1.2.3
.attraggr:
.attrminint:
READINGS:
2021-03-21 15:18:30 fhemBackupFile ./backup/FHEM-20210321_151830.tar.gz
2021-03-21 00:34:36 state ready
Attributes:
bTS_Host 192.168.xxx.xxx
bTS_Path /Fhem/FhemBackUp
bTS_Type SynologyFileStation
bTS_User Fhem
Gruß
Zitat von: CoolTux am 18 Juni 2020, 13:14:42
Das Modul ist aktuell ausschließlich für ein Nextcloud Upload über HTTPS.
Achso, schade!
Ausschließlich sollte bTS_Type SynologyFileStation
auschließen ;D
Dann viel Spaß damit! (Bevor das falsch ankommt... nicht Ironisch gemeint)
Gruß
Für Synology ist bereits Unterstützung in Arbeit. Für andere Systeme habe ich aktuell leider keine Zeit.
Zitat von: CoolTux am 21 März 2021, 17:56:21
Für Synology ist bereits Unterstützung in Arbeit. Für andere Systeme habe ich aktuell leider keine Zeit.
Hallo CoolTux,
Bin aktuell wegen Deinem Modul und natürlich denen von DS_Starter von Qnap zu einer Synology gewechselt. Alles sehr schön, nur die Datensicherung kommt nicht auf der Synology an. - gibt es dazu einen neuen aktuellen Stand?
Zitat von: det. am 01 März 2022, 21:33:25
Hallo CoolTux,
Bin aktuell wegen Deinem Modul und natürlich denen von DS_Starter von Qnap zu einer Synology gewechselt. Alles sehr schön, nur die Datensicherung kommt nicht auf der Synology an. - gibt es dazu einen neuen aktuellen Stand?
Hallo,
Leider habe ich aktuell keine Zeit. Es gibt auch keinen lauffähigen Stand.
Moin zusammen und danke cooler Tux!
Für die Nextcloud sehr nice, das Modul: Haken war auch bei mir, dass der Backup zu lange lief, weshalb ich hier nachschaute. 180 Sekunden im Source auf 900 erhöht und fertig war der einfache Backup, der unmittelbar hochgeladen wird. Zum Starten habe ich ein at genutzt:
define at_backup at *01:11:00 { fhem("backup") if($wday == 3) }
Kurzinfo für Leute, die nicht suchen/ausprobieren bzw. im Quelltext eruieren wollen:
bTS_Host meint den Host oder das Unterverzeichnis der Nextcloud (so wie sie auch im Browser erreichbar ist); bei mir z.B. die IP gefolgt von /nextcloud, also beispielhaft 192.168.1.111/nextcloud. OHNE http(s)://!
bTS_Path meint den Pfad beginnend mit / im Hauptverzeichnis des Benutzers der Nextcloud, z.B. /backup/fhem.
bTS_User meint den Benutzernamen der Authentifizierung in der Nextcloud.
Wenn der Upload erfolgreich ist, wird das reading uploadState erzeugt (später aktualisiert) und erhält den Wert "upload successfully". Diese Eventualität kann man sich zu Nutze machen, um den Backup im fhem-Backup-Ordner zu entfernen. Hierzu habe ich ein Notify kreiert:
define n_backupFhem_uploadSuccess notify backupFhem:uploadState.* {
# wenn nicht erfolgreich, dann verlassen
if (index($EVENT,"upload successfully") == -1) { return;; }
# Namen des letzten Backups holen (this_NextcloudBackup ist mein backupToStorage-Device)
my $lastBackupFile = ReadingsVal("this_NextcloudBackup","fhemBackupFile","none");;
# wenn reading des letzten Backups nicht vorhanden, verlassen
if ($lastBackupFile eq "none") { return;; }
# $fileToDelete bezeichnet den absoluten Pfad
#my $fileToDelete = '/opt/fhem' . substr($lastBackupFile, 1, length($lastBackupFile)-1);;
# $lastBackupFile bezeichnet den fhembezogenen Pfad
unlink($lastBackupFile) or die Log 1, "$lastBackupFile konnte nicht gelöscht werden (n_ncBackup_uploadSuccess)";;
# return verhindet die Logausgabe des return value: 1
return;;
}
Ein Backup kann sowohl durch Eingabe von "backup" in der Befehlszeile von fhem gestartet werden oder auch per at oder anderen Mitteln wie Events z.B..
Ich sehe zu, dass ich auch noch die Begrenzung der Anzahl von Backups in der Nextcloud hier einbringe.
Den Grund übrigens für die hohe Toleranzzeit von 900s möchte ich auch nicht verschweigen. Der fhem-Server liegt auf einem pi2, die Nextcloud auf einem pi3 im gleichen Netzwerk. 600s waren ebenfalls ausreichend, aber habe ich mir etwas Raum gegeben, weil die fhem-Installation (Doppelsystem mit fhem2fhem - Homematic und EnOcean) gerade noch größer wird. Der Zugriff mit dieser Form von Backup funktioniert auch von außen, aus einem anderen Netzwerk heraus, problemlos (in meinem Fall mit einem pi4). Die Backups sind jeweils zwischen 100 und 150 MB groß. Dabei bestimmt der fhem-Server mit seiner Geschwindigkeit den Flaschenhals.
Ich habe hier übrigens auch noch eine antike DiskStation (216 glaube ich). Eventuell teste ich das Geschehen damit ebenfalls, weil doch einige Fragen und Interessensbekundungen hier vorlagen. Und, ja, ich weiß, dieser Thread ist schon etwas älter. Heißt jedoch nicht, dass man nicht trotzdem auf ihn stoßen könnte. Ich bin's ja auch. So hoffe ich nun, vielleicht ebenfalls ein wenig geholfen zu haben.
Grüße von softwear
Moin zusammen erneut,
Beschränkung der Backups auf dem NextCloud-Storage, somit Löschung der/des Ältesten bei Verschieben des Neuesten auf das Storage, um eine fixe Anzahl vorzuhalten, läuft jetzt bei mir. Die Anzahl der auf dem Storage vorzuhaltenden Backups habe ich als Attribut hinzugefügt (mein Standard beträgt 4, kann man aber ändern).
Habe ich CoolTux auch bereits übermittelt. Er schreibt das Modul insgesamt gerade um, sodass es etwas dauern kann, bis ihr in den Genuss kommt.
Ferner ist ebenfalls die Synology DiskStation kein Problem. Auch dort habe ich Backups abgelegt. Wenn Bedarf besteht, füge ich die Funktionen der DS noch in die alte Version ein, sodass ihr sie nutzen könnt, bevor die neue steht. Ansonsten belasse ich's soweit mit meinem Testscriptmodul und freue mich selbst auf die Neue von Cool 8) .
Ich wünsche allen ein schönes Wochenende! Könnte nur sonniger sein :)
softwear
Hallo CoolTux,
ist zwar schon über ein Jahr seit dem letzten Beitrag, habe das Modul aber erst jetzt entdeckt.
Würde das Modul sehr gerne nutzen um meine Fhem Backups auf einfachem Weg auf meine Nextcloud zu schieben. Aktuell nutze ich ziemlich umständliche Wege für die Sicherung der Backups, die ich mir mit diesem Modul sparen könnte.
Leider funktioniert das Modul in der aktuellen Form für mich nicht, weil meine NC nur per https erreichbar ist (intern über die IP garnicht).
Meine Frage wäre nun, ob hier von dir noch weiterentwickelt wird?
Vielen Dank
Mario
Mein Nextcloud ist auch nur per https erreichbar und auch nur über den Hostnamen.
Ich benutze seit Jahren problemlos diese Config:defmod backup_nextcloud backupToStorage
attr backup_nextcloud alias Nextcloud Backup
attr backup_nextcloud bTS_Host cloud.example.org
attr backup_nextcloud bTS_Path /FHEM1
attr backup_nextcloud bTS_User fhem-backup
attr backup_nextcloud devStateIcon upload\ssuccessfully:ampel_gruen .*:ampel_rot
attr backup_nextcloud stateFormat uploadState
Gepaart mit einem Scheduler DOIF, der 1x wöchentlich das Backup ausführt und alte Backups automatisch löscht. Habe ich glaube ich irgendwo aus dem Forum hier.defmod backup_schedule DOIF ([01:04|So]) ( {\
Log 1, "Automatisches Backup Startet";;;;\
fhem("backup");;;;\
\
my $BackupDir = AttrVal("global", "backupdir", "/opt/fhem/backup");;;;\
my $BackupsCurrent = qx(ls -A "$BackupDir" | grep -c ".tar.gz");;;;\
## Menge der vorzuhaltenden Backup-Files\
my $BackupsMax = 8;;;;\
my $BackupsDelete = $BackupsCurrent - $BackupsMax;;;;\
\
Log 1, "Aktuelle Backups: $BackupsCurrent";;;;\
Log 1, "Zu löschende Backups: $BackupsDelete";;;;\
Log 1, "Liste der zu löschenden Backups:";;;;\
\
## Ausgabe der zu löschenden Files\
if ($BackupsDelete > 0)\
{\
my $FilesDel = qx(ls -d "$BackupDir/"* | grep ".tar.gz" | head -$BackupsDelete);;;;\
Log 1, $FilesDel;;;;\
## Files löschen\
my $BackupDelete = qx(ls -d "$BackupDir/"* | grep ".tar.gz" | head -$BackupsDelete | xargs rm);;;;\
}\
Log 1, "Backups gelöscht.";;;;\
} )
attr backup_schedule alias Backupplan
attr backup_schedule do always
Vielleicht klappt bei dir irgendetwas mit der Authentifizierung nicht oder so? Ich erinnere mich, dass ich damals auch ein klein wenig rumprobieren musste, bis das ging, aber seitdem läuft es.
Sieht bei mir ähnlich aus.
Ich lasse täglich das Backup von Fhem über die global parameter laufen.
Die Anmeldeparameter für Nextcloud sind korrekt, weil es auch die sind, die ich für meinen Login verwende.
Habe nun mal verbose auf 5 gesetzt und das Backup manuell angestoßen. Ändert aber trotzdem nichts daran, daß die Datei nicht auf meiner Nextcloud landet.
Hier der Auszug aus dem Log dazu:
2024.10.22 13:27:39 4: backupToStorage (myCloudBackupUpload) -
Devname: global
Name: myCloudBackupUpload
Notify: $VAR1 = [
'ATTR myCloudBackupUpload verbose 5'
];
2024.10.22 13:27:39 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:27:39 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:27:39 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:27:39 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:27:41 4: backupToStorage (myCloudBackupUpload) -
Devname: global
Name: myCloudBackupUpload
Notify: $VAR1 = [
'SAVE'
];
2024.10.22 13:27:51 2: Backup with command: tar czf /opt/Filetransfer/fhembackups/FHEM-20241022_132750.tar.gz "./killwatchdog.sh" "./startfhem" "./log" "./backup" "./fhem.cfg.demo" "./certs" "./watchdog.pl" "./configDB.pm" "./webfrontend" "./MAINTAINER.txt" "./README.SVN" "./watchdogloop.sh" "./conf" "./reverse-search-cache.txt" "./stopfhem" "./restoreDir" "./unused" "./killfhem.sh" "./CHANGED" "./fhem_fritz_traffic.py" "./README_DEMO.txt" "./hmccu_defattr.txt" "./Makefile" "./lib" "./HISTORY" "./fhem.pl" "./script" "./nas" "./www" "./docs" "./demolog" "./fhem.cfg.dpkg-dist" "./runfhem.sh" "./fhem.cfg.debug" "./fhem.cfg" "./fhem.conf.alt" "./FHEM" "./startwatchdog" "./contrib" "./cache" "./runwatchdog.sh" "./watchdog.log" "./GPL_V2.txt" "./fhem_fritz_link.py"
2024.10.22 13:27:53 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:27:53 4: backupToStorage (myCloudBackupUpload) - Read password from file
Backup done
2024.10.22 13:35:29 4: backupToStorage (myCloudBackupUpload) -
Devname: global
Name: myCloudBackupUpload
Notify: $VAR1 = [
'backup done'
];
2024.10.22 13:35:29 4: backupToStorage (myCloudBackupUpload) - push to storage function
2024.10.22 13:38:45 4: backupToStorage (myCloudBackupUpload) - Read password from file
2024.10.22 13:38:45 4: backupToStorage (myCloudBackupUpload) - Read password from file
Hier auch noch mein List vom Device
Internals:
.FhemMetaInternals 1
CFGFN
FUUID 671603ce-f33f-db67-28a5-8f610fdc0e7c41b1
NAME myCloudBackupUpload
NOTIFYDEV global,myCloudBackupUpload
NR 895
NTFY_ORDER 51-myCloudBackupUpload
STATE ready
STORAGETYPE Nextcloud
TYPE backupToStorage
VERSION v1.2.3
eventCount 10
.attraggr:
.attrminint:
READINGS:
2024-10-22 13:11:24 fhemBackupFile /opt/Filetransfer/fhembackups/FHEM-20241022_131123.tar.gz
2024-10-22 08:24:56 state ready
hmccu:
Attributes:
bTS_Host die.xxxxxxxx.cloud
bTS_Path /Backups/FHEM-Backup/pi4
bTS_Type Nextcloud
bTS_User Mario
group Backup
room 9.97 FHEM,9.98 Programme
Ah, ich glaube ich sehe das Problem. Dein Backup braucht länger als 3 Minuten (gestartet um 13:27:51 Uhr, beendet erst um 13:35:29 Uhr).
Dürfte damit zu fixen sein: https://forum.fhem.de/index.php?topic=112216.msg1141572#msg1141572
Weitere Dinge (falls das nichts bringt):
Hast du 2FA bei deinem Account an? Wenn ja, musst du auch ein App-Passwort nutzen (oder einen zweiten Benutzer anlegen, der nur das FHEM-Backup macht).
Und: Was sagt denn dein Webserver log dazu? Kommen da irgendwelche Requests von FHEM?
Zitat von: passibe am 22 Oktober 2024, 17:13:29Ah, ich glaube ich sehe das Problem. Dein Backup braucht länger als 3 Minuten (gestartet um 13:27:51 Uhr, beendet erst um 13:35:29 Uhr).
Dürfte damit zu fixen sein: https://forum.fhem.de/index.php?topic=112216.msg1141572#msg1141572
Wie das immer so ist: Wald und lauter Bäume ... O:-)
Hatte den Beitrag völlig übersehen/vergessen/wat auch immer.
Habe das Timeout auf 600 gesetzt und schon läufts 8)
Vielen Dank
Eine Kleinigkeit ist mir noch aufgefallen (Ursache muß ich aber wohl auf meinem ReverseProxy oder in Nextcloud suchen):
Obwohl das Modul als uploadState "upload successfully" meldet, sagen die Logs was anderes.
Da meine Perl Kenntnisse nicht ganz ausreichen um das im Modul selbst abzufangen, soll das als Info für CoolTux sein.
Hier der entsprechende Auszug aus dem Log (die IP habe ich unkenntlich gemacht):
96 384M 0 0 96 370M 0 22.3M 0:00:17 0:00:16 0:00:01 23.3M
100 384M 0 0 100 384M 0 21.0M 0:00:18 0:00:18 --:--:-- 18.8M
100 384M 100 574 100 384M 31 21.0M 0:00:18 0:00:18 --:--:-- 17.6M
<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
<s:exception>Interner Serverfehler</s:exception>
<s:message>
Der Server konnte die Anfrage nicht fertig stellen. Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an deinen Server-Administrator. Weitere Details können im Server-Protokoll gefunden werden. </s:message>
<s:technical-details>
<s:remote-address>xxx.xxx.xxx.xxx</s:remote-address>
<s:request-id>UKAt3YcNkkOsizzfX5v4</s:request-id>
</s:technical-details>
</d:error>
2024.10.23 10:09:15 4: backupToStorage (myCloudBackupUpload) - got result from asynchronous parsing: {"ncUpload":"upload successfully"}
2024.10.23 10:09:15 4: backupToStorage (myCloudBackupUpload) - asynchronous finished.
2024.10.23 10:09:15 4: backupToStorage (myCloudBackupUpload) - clean Subprocess
2024.10.23 10:09:15 3: backupToStorage (myCloudBackupUpload) - _CheckIsDisabledAfterSetAttr
2024.10.23 10:09:15 4: backupToStorage (myCloudBackupUpload) -
Devname: myCloudBackupUpload
Name: myCloudBackupUpload
Notify: $VAR1 = [
'state: ready',
'uploadState: upload successfully'
];
Zitat von: margu am 23 Oktober 2024, 10:45:05Eine Kleinigkeit ist mir noch aufgefallen (Ursache muß ich aber wohl auf meinem ReverseProxy oder in Nextcloud suchen):
Obwohl das Modul als uploadState "upload successfully" meldet, sagen die Logs was anderes.
<s:message>
Der Server konnte die Anfrage nicht fertig stellen. Sollte dies erneut auftreten, sende bitte die nachfolgenden technischen Einzelheiten an deinen Server-Administrator. Weitere Details können im Server-Protokoll gefunden werden. </s:message>
Kann es sein, daß das Passwort keine Sonderzeichen (oder zumindest nicht das $-Zeichen) enthalten darf?
Ich habe auf meinem Server gesehen, daß es Probleme mit dem Login gab.
Um das zu testen, habe ich einen neuen Benutzer auf der Nextcloud angelegt (Passwort ohne Sonderzeichen) und dann hat auch der automatische Upload vom Modul aus funktioniert.
Was du noch probieren könntest: Bei Nextcloud kann man auch App-Passwörter erstellen, die sind dann (glaube ich) ohne Sonderzeichen und dann brauchst du keinen zusätzlichen Benutzer.
Zitat von: passibe am 23 Oktober 2024, 16:43:08Was du noch probieren könntest: Bei Nextcloud kann man auch App-Passwörter erstellen, die sind dann (glaube ich) ohne Sonderzeichen und dann brauchst du keinen zusätzlichen Benutzer.
Ja, wäre auch eine Option.
Aber ich lasse das jetzt mit dem separaten User und nutze Gruppenordner, damit ich auch mit meinem eigenen User auf die Backups zugreifen kann.
Hat zusätzlich den Vorteil, daß der FHEM-Zugriff von meinem User getrennt ist und ich mit den Zugriffsrechten flexibler bin.