Sicherung aus dem Docker heraus
Verfasst: Sa 13. Mai 2023, 16:58
Hallo Zusammen,
ich versuche gerade, die Daten der Solaranzeige aus dem Docker heraus zu sichern.
Ich habe dazu die backup.sh von meinem Raspberry "umgebaut"
Es wird auch ein einmal ausgeführt, danach bekomme ich jedoch Fehlermeldungen, das die influx Datenbank nicht mehr beschrieben werden kann.
Bei einem 2.ten ausführen der backup.sh kommt zudem folgende Fehlermeldung in der Konsole:
Funktioniert die Sicherung so aus dem Docker heraus nicht?
Beste Grüße
Chris
ich versuche gerade, die Daten der Solaranzeige aus dem Docker heraus zu sichern.
Ich habe dazu die backup.sh von meinem Raspberry "umgebaut"
Code: Alles auswählen
#!/bin/bash
#Dateiname backup.sh
#Speicherort /solaranzeige
#Datei ausführbar machen mit sudo chmod +x backup.sh
#Ordner data und old im Ordner /backup/ anlegen
#altes Backup vorher loeschen
rm /backup/old/*
mv /backup/data/* /backup/old/
#Backup erstellen
influxd backup -portable -database solaranzeige -host 127.0.0.1:8088 /backup/da>
service influxdb restart
tar -vcf /backup/data/BackupSolAnz_${zeit}.tar /var/www/html /var/lib/grafana />
Bei einem 2.ten ausführen der backup.sh kommt zudem folgende Fehlermeldung in der Konsole:
Code: Alles auswählen
#!/usr/bin/php
rm: cannot remove '/backup/old/*': No such file or directory
mv: target '/backup/old/' is not a directory
2023/05/13 16:49:51 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (0)...
2023/05/13 16:49:53 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (1)...
2023/05/13 16:49:55 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (2)...
2023/05/13 16:49:57 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (3)...
2023/05/13 16:49:59 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (4)...
2023/05/13 16:50:01 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 2s and retrying (5)...
2023/05/13 16:50:03 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 3.01s and retrying (6)...
2023/05/13 16:50:06 Download shard 0 failed dial tcp 127.0.0.1:8088: connect: co nnection refused. Waiting 11.441s and retrying (7)...
Beste Grüße
Chris