NEWS
BackItUp für InfluxDB
-
@massiveattack
Oh, da bin ich überfragt. Aber ich glaube, es gibt grundsätzlich ein Problem mittels "influxd" von außen ein Backup im Docker anzustoßen.
Selbst die Leute von Influxdata machen es über docker exec ...
https://www.influxdata.com/blog/backuprestore-of-influxdb-fromto-docker-containers/ -
@massiveattack Kannst du bitte mal die Config deines Dockers posten
-
@succo_j said in BackItUp für InfluxDB:
apt-get install influxdb-client
Ich glaube das heißt, der Client ist schon installiert?!
Vorbereitung zum Entpacken von .../influxdb-client_1.6.4-1+deb10u1_armhf.deb ... Entpacken von influxdb-client (1.6.4-1+deb10u1) ... dpkg: Fehler beim Bearbeiten des Archivs /var/cache/apt/archives/influxdb-client_1.6.4-1+deb10u1_armhf.deb (--unpack): Versuch, »/usr/bin/influx« zu überschreiben, welches auch in Paket influxdb 1.8.5-1 ist dpkg-deb: Fehler: »einfügen«-Unterprozess wurde durch Signal (Datenübergabe unterbrochen (broken pipe)) getötet Fehler traten auf beim Bearbeiten von: /var/cache/apt/archives/influxdb-client_1.6.4-1+deb10u1_armhf.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
Pfuh das wird ja immer komplizierter
In der Config steht nix besonderes drin, alles default
-
Ich habe vorläufig einen Workaround gefunden. Leider muss ich dazu den backupjob manuell in der docker console starten:
influxd backup -portable -database iobroker "/var/lib/influxdb/backups/influxDB_20_05_21"
Wobei "/var/lib/influxdb/" mein Freigabeverzeichnis für den Docker ist. Dabei wird der Ordner "backups" erstellt. Auf diesen Freigabeordner kann ich über das NAS Filesystem ja zugreifen, und kopiere mir dann das influxdb backup weg.
-
Noch eine andere Frage zum Backup von JS, was muss ich da eintragen, damit das Backup funktioniert?
-
@massiveattack
Im js-Adapter spiegeln (am besten außerhalb von /opt/iobroker ; z. B. im /home/iobroker/iobskripte oder sowas) und dieses Spiegelverzeichnis im Backitup eintragen. -
Danke, funktioniert
-
@massiveattack sagte in BackItUp für InfluxDB:
In der Config steht nix besonderes drin, alles default
Zeige bitte trotzdem mal die Config
-
$ docker run -p 8086:8086 \ -v influxdb:/var/lib/influxdb \ influxdb:1.8
-
@massiveattack der Port 8088 ist da aber nicht konfiguriert.
Den Port benötigst du als remote Port -
@simatec
den habe ich auch in der influx config eingestellt:[admin]
enabled = true
bind-address = ":8088"(hab auch schon "0.0.0.0:8088" erfolglos versucht"
-
@massiveattack sagte in BackItUp für InfluxDB:
8088
Ich denke beim docker musst du den Port auch freigeben ...
Eventuell kann da @andre etwas zu sagen. -
Puh ob man den Port nachträglich im Docker ändern kann, wage ich zu bezweifeln, zumindest in der Docker Station von Qnap gibts da Probleme.
Aber wärs nicht einfacher, den Port auf ":8086" zu ändern, sowohl in der config als auch im iobroker backup?
Oder wäre der dann doppelt belegt? Wäre das ein Problem? -
@massiveattack Nein der Port 8086 ist belegt ... Remote benötigt einen anderen Port
-
@simatec
Alles klar. Vielleicht hat jemand eine Idee, wie man einen zusätzlichen Port in der Container Station (Qnap) freigeben kann. -
@simatec Hallo!
ich würde gerne ein Backup der Influx-Daten (BackitUp) im Synology/Docker/Container/influx1.7 einspielen.
bekomme es aber nicht hin, dass er die Daten vom Backup übernimmt?
weder im iobroker - backitup noch mit dem Befehlinfluxd backup -portable -database iobroker "/var/lib/influxdb/backups/influxDB_20_05_21"
-
@simatec sagte in BackItUp für InfluxDB:
Eventuell kann da @andre etwas zu sagen.
Noch aktuell? Worum geht es? War leider ein paar Tage raus...
MfG,
André -
@andre ev. würdest du mir helfen? ich versuche mit Backitup Influx Daten in mein Synology/Docker Influx zu bekommen.
-
-
seit einem Grafana Update auf v8 bekomme ich beim Backup einen Fehler:
[DEBUG] [iobroker] - done [DEBUG] [grafana] - Start Grafana Backup ... [DEBUG] [grafana] - Created grafana_tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Created dashboard directory [DEBUG] [grafana] - Created dashboards_manually_restore directory [DEBUG] [grafana] - Created datasource directory [DEBUG] [grafana] - start Grafana request ... [DEBUG] [grafana] - Grafana is available ... Status: 200 [DEBUG] [grafana] - Error on Grafana Dashoard backup: Error: Request failed with status code 404 [DEBUG] [grafana] - start Grafana backup compress ... [DEBUG] [grafana] - Try deleting the Grafana tmp directory: "/opt/iobroker/backups/grafana_tmp" [DEBUG] [grafana] - Grafana tmp directory "/opt/iobroker/backups/grafana_tmp" successfully deleted [DEBUG] [grafana] - cannot found Grafana Backup files [DEBUG] [grafana] - done [DEBUG] [cifs] - done [DEBUG] [cifs] start with {"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","backupDir":"/opt/iobroker/backups","deleteBackupAfter":0} [DEBUG] [clean] - done [DEBUG] [historyHTML] - new history html values created [DEBUG] [historyHTML] - done [DEBUG] [historyJSON] - new history json values created [DEBUG] [historyJSON] - done [DEBUG] [historyHTML] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"5","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2021_06_09-11_42_47_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null},"dir":"/opt/iobroker","grafana":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"cifs","host":"","debugging":true,"deleteOldBackup":false,"ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker","user":"","pass":"****","port":"21"},"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"backup","dirMinimal":"sharename/backupDir","user":"","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"webdav":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"username":"username","pass":"****","url":"https://example.com/remote.php/dav/files/username/","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"host":"192.168.0.10","port":"3000","username":"admin","pass":"****","apiKey":"****"},"historyHTML":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de","time":"09. Juni 2021 um 11:42 Uhr"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [historyJSON] start with {"type":"creator","time":"02:00","debugging":true,"everyXDays":"5","deleteBackupAfter":0,"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","context":{"fileNames":["/opt/iobroker/backups/iobroker_2021_06_09-11_42_47_backupiobroker.tar.gz"],"errors":{},"done":["mount","iobroker"],"types":["iobroker"]},"adapter":null},"dir":"/opt/iobroker","grafana":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"cifs","host":"","debugging":true,"deleteOldBackup":false,"ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker","user":"","pass":"****","port":"21"},"cifs":{"enabled":true,"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"backup","dirMinimal":"sharename/backupDir","user":"","pass":"****"},"dropbox":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessToken":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"webdav":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"username":"username","pass":"****","url":"https://example.com/remote.php/dav/files/username/","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"googledrive":{"enabled":false,"type":"storage","source":"cifs","debugging":true,"deleteOldBackup":false,"accessJson":"****","ownDir":false,"dir":"/backupDir","dirMinimal":"/backupDir/iobroker"},"host":"192.168.0.10","port":"3000","username":"admin","pass":"****","apiKey":"****"},"historyHTML":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de"},"historyJSON":{"enabled":true,"type":"message","entriesNumber":"5","systemLang":"de","time":"09. Juni 2021 um 11:42 Uhr"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [umount] - mount activ, umount is started ... [DEBUG] [umount] start with {"mountType":"NFS","type":"storage","source":"cifs","mount":"192.168.0.3","debugging":true,"fileDir":"/opt/iobroker/node_modules/iobroker.backitup","wakeOnLAN":false,"macAd":"20:DE:20:DE:20:DE","wolTime":"25","smb":"vers=1.0","sudo":true,"cifsDomain":"","clientInodes":false,"deleteOldBackup":true,"ownDir":false,"dir":"/backup","dirMinimal":"sharename/backupDir","user":"","pass":"****","backupDir":"/opt/iobroker/backups"} [DEBUG] [umount] - umount successfully completed [DEBUG] [umount] - done [EXIT] 0