NEWS
Adapter: iobroker.backitup (stable Release)
-
Die Rechtevergabe auf der NAS sind richtig, ebenso die Uhrzeit un die Zeitzone, den Adapter habe ich noch nicht neu installiert.
Ich habe wie vorgeschlagen eben die Anzahl der Backups auf 3 und zum Testen die Uhrzeit auf 11:20 gesetzt.
Pünklich wurde das Backup automatisch gestartet und hat 10 Stück Backups inklusiv dem aktuellen von 11:20 Uhr gelöscht.
Die gelöschten Dateien befinden sich jetzt im Papierkorb auf der NAS.
Die drei ältesten Backups liegen noch im BackupVerzeichnis.
Hier das Log:
2018-11-30 11:20:12.164 - debug: backitup.0 [minimal/mount] done 2018-11-30 11:20:24.178 - debug: backitup.0 [minimal/minimal] Backup created: /opt/iobroker/backups/minimal_2018_11_30-11_20_12_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.245 - debug: backitup.0 [minimal/minimal] done 2018-11-30 11:20:24.256 - debug: backitup.0 [minimal/cifs] done 2018-11-30 11:20:24.311 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_10_31-00_30_11_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.372 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_01-00_30_11_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.381 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_04-00_30_10_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.388 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_10_25-00_30_13_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.396 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_10-00_30_12_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.403 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_13-00_30_10_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.410 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_16-00_30_12_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.418 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_26-14_27_38_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.425 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_27-00_35_13_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.434 - debug: backitup.0 [minimal/clean] delete /opt/iobroker/backups/minimal_2018_11_30-11_20_12_Rock64_backupiobroker.tar.gz 2018-11-30 11:20:24.445 - debug: backitup.0 [minimal/clean] done 2018-11-30 11:20:24.481 - debug: backitup.0 [minimal/telegram] [minimal] used Telegram-Instance: telegram.0 2018-11-30 11:20:24.503 - debug: backitup.0 sendTo "send" to system.adapter.telegram.0 from system.adapter.backitup.0 2018-11-30 11:20:24.505 - debug: backitup.0 [minimal/telegram] done 2018-11-30 11:20:24.628 - debug: backitup.0 [minimal/history] backitup.0.history.html 2018-11-30 11:20:34.669 - debug: backitup.0 [minimal/umount] done 2018-11-30 11:20:34.673 - debug: backitup.0 [minimal] exec: done
-
Und was passiert, wenn du sie local speicherst?
Ich gehe von einem NAS Problem aus.
Da du der einzige mit dem Problem bist, sehe ich da nicht den Adapter als Problem.
Ich habe hier 4 unterschiedliche Systeme laufen.
Überall wird korrekt gelöscht.
Gesendet von iPhone mit Tapatalk
-
ich werde den Adapter am WE mal neu installieren, da ja auch dieses mit dem invalid Date angezeigt wird:
Danke erst einmal für deine Hilfe,
Gruß
Volker
-
Für invalid date einfach die Datenpunkte löschen und neustarten
Gesendet von iPhone mit Tapatalk
-
Für invalid date einfach die Datenpunkte löschen und neustarten
Gesendet von iPhone mit Tapatalk `
Habe ich eben gemacht und dann das minimal über VIS von Hand angestoßen und nun habe ich das Datum im Datenpunbkt stehen.
Danke.
-
Dann teste mal bitte noch local die Backups abzulegen und schaue ob da richtig gelöscht wird.
Ich denke da gibt es ein Problem mit dem NAS.
Gesendet von iPhone mit Tapatalk
-
Ich habe jetzt auf lokal umgestellt, jeden Tag sichern um 00:35 Uhr und bis auf 3 Dateien löschen.
Eine Datei von der NAS mit Filezilla in das Verzeichnis kopiert und zwei Sicherungen mit 3 Minuten Abstand per VIS angestoßen.
Lokal liegen da jetzt drei Dateien, bin ja mal gespannt was da morgen liegt.
Drei Fragen habe ich noch:
Im Log steht nach dem Adapter Speichern u. a. folgende Einträge:
2018-11-30 19:18:13.998 - info: backitup.0 [minimal] backup was activated at 00:35 every 1 day(s) 2018-11-30 19:18:14.096 - debug: backitup.0 [minimal] 10 35 00 */1 * *
Was bedeutet hierbei die "10" bei 10 35 00 */1 * *?
Welche Dateiberechtigungen sollen die Backups haben?
Und ist es richtig so, dass alle auswählten Sicherungen (also bei mir die CCU, Standart und Komplett) auch immer am Monatsersten durchgeführt werden?
Ich benutze den Adapter schon einige Monate und das viel mir schon immer auf.
Das mit dem Löschen habe ich jetzt erst zufällig festgestellt, das da was auf meinem System schief läuft.
-
Das bedeutet, dass jeden Tag um 00:35:10 das Backup erstellt wird.
Die Backups werden über cronjob gestartet.
Zu den Rechten hängt es sich von deinem NAS ab.
Grundsätzlich sollte aber iob voller Dateirechte haben, damit er die backups schreiben und auch Infos auslesen kann.
Überprüfe auch mal deine Zeitzonen Einstellungen auf deinem iob System.
Gesendet von iPhone mit Tapatalk
-
Genau das was ich gesucht habe! Danke, toller Adapter!
-
Hallo
noch mal zu meinem Problem mit dem Mysql Backup…
Ich mache das Mysql Backup zusammen mit dem Minimalen Backup.
Dazu gleich noch einmal die Frage, was der Haken
"MySql Backup bei Standard-Backup" bewirkt?? Wann wird dasBackup gemacht, wenn der Haken nicht gesetzt ist?
Die Größe der Backups ist gleichbleibend 89...91 Byte. Ich gehe davon aus, dass das Backup nicht funktioniert.
Im Log File ist mir aufgefallen, dass bei Erstellung des SQL Backup die IP Nummer 192.168.1.114 auf taucht. Die IP des NAS, wo das Backup hin geschrieben wird ist aber 192.168.1.113
Wo kommt die 114 her ? Und dann steht da eine Fehlermeldung mit "mysqldump".
Was kann ich ändern, damit es funktioniert?
`Gestartet... [DEBUG] [mount] start with {"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","backupDir":"/opt/iobroker/backups"} [DEBUG] [mount] - done [DEBUG] [minimal] start with {"type":"creator","time":"02:10","debugging":false,"everyXDays":"1","deleteBackupAfter":0,"mysqlEnabled":true,"redisEnabled":false,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","context":{"fileNames":[],"errors":{},"done":["mount"],"types":[]},"adapter":null},"mysql":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"dbName":"iobroker","user":"iobroker","pass":"****","deleteBackupAfter":"5","host":"192.168.1.114","port":"3307","exe":""},"dir":"/opt/iobroker","redis":{"enabled":false,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"path":"/var/lib/redis/dump.rdb"},"history":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":null,"User":null,"systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"email.0","NoticeType":"shortEmailNotice","emailReceiver":"ioBroker@maddy.de","emailSender":"ioBroker@maddy.de","systemLang":"de"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [minimal] - Backup created: /opt/iobroker/backups/minimal_2018_12_02-14_30_32_backupiobroker.tar.gz [DEBUG] [minimal] - done [DEBUG] [mysql] start with {"type":"creator","cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****"},"dbName":"iobroker","user":"iobroker","pass":"****","deleteBackupAfter":"5","host":"192.168.1.114","port":"3307","exe":""} [ERROR] [mysql] - [IGNORED] Error: spawn mysqldump ENOENT [DEBUG] [mysql] - done [DEBUG] [cifs] start with {"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","backupDir":"/opt/iobroker/backups","deleteBackupAfter":0} [DEBUG] [cifs] - done [DEBUG] [clean] start with {"deleteBackupAfter":0} [ERROR] [clean] - Backup files not deleted from /opt/iobroker/backups because some errors. [DEBUG] [clean] - done [DEBUG] [email] start with {"type":"creator","time":"02:10","debugging":false,"everyXDays":"1","deleteBackupAfter":0,"mysqlEnabled":true,"redisEnabled":false,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","context":{"fileNames":["/opt/iobroker/backups/minimal_2018_12_02-14_30_32_backupiobroker.tar.gz","/opt/iobroker/backups/mysql_2018_12_02-14_30_44_backupiobroker.tar.gz"],"errors":{"mysql":{"code":"ENOENT","errno":"ENOENT","syscall":"spawn mysqldump","path":"mysqldump","spawnargs":["-u","iobroker","-pdu77x1wa","iobroker","-h","192.168.1.114","-P","3307"]}},"done":["mount","minimal"],"types":["minimal"]},"adapter":null},"mysql":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"dbName":"iobroker","user":"iobroker","pass":"****","deleteBackupAfter":"5","host":"192.168.1.114","port":"3307","exe":""},"dir":"/opt/iobroker","redis":{"enabled":false,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"path":"/var/lib/redis/dump.rdb"},"history":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":null,"User":null,"systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"email.0","NoticeType":"shortEmailNotice","emailReceiver":"ioBroker@maddy.de","emailSender":"ioBroker@maddy.de","systemLang":"de","time":"02\. Dezember 2018 um 14:30 Uhr"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [email] - done [DEBUG] [history] start with {"type":"creator","time":"02:10","debugging":false,"everyXDays":"1","deleteBackupAfter":0,"mysqlEnabled":true,"redisEnabled":false,"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","context":{"fileNames":["/opt/iobroker/backups/minimal_2018_12_02-14_30_32_backupiobroker.tar.gz","/opt/iobroker/backups/mysql_2018_12_02-14_30_44_backupiobroker.tar.gz"],"errors":{"mysql":{"code":"ENOENT","errno":"ENOENT","syscall":"spawn mysqldump","path":"mysqldump","spawnargs":["-u","iobroker","-pdu77x1wa","iobroker","-h","192.168.1.114","-P","3307"]}},"done":["mount","minimal"],"types":["minimal"]},"adapter":null},"mysql":{"enabled":true,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"dbName":"iobroker","user":"iobroker","pass":"****","deleteBackupAfter":"5","host":"192.168.1.114","port":"3307","exe":""},"dir":"/opt/iobroker","redis":{"enabled":false,"type":"creator","ftp":{"enabled":false,"type":"storage","source":"NAS / Copy","host":"192.168.1.113","deleteOldBackup":false,"ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"/backupDir/minimal","dirTotal":"/backupDir/total","user":"iobroker","pass":"ioBroker66","port":"21"},"cifs":{"enabled":true,"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"ioBroker66"},"dropbox":{"enabled":false,"type":"storage","source":"NAS / Copy","deleteOldBackup":false,"accessToken":"","ownDir":false,"bkpType":"Minimal","dir":"","dirMinimal":"","dirTotal":""},"path":"/var/lib/redis/dump.rdb"},"history":{"enabled":true,"type":"message","entriesNumber":"25","systemLang":"de","time":"02\. Dezember 2018 um 14:30 Uhr"},"telegram":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"","SilentNotice":false,"NoticeType":null,"User":null,"systemLang":"de"},"email":{"enabled":true,"notificationsType":"E-Mail","type":"message","instance":"email.0","NoticeType":"shortEmailNotice","emailReceiver":"ioBroker@maddy.de","emailSender":"ioBroker@maddy.de","systemLang":"de"},"backupDir":"/opt/iobroker/backups"} [DEBUG] [umount] start with {"mountType":"CIFS","type":"storage","source":"NAS / Copy","mount":"//192.168.1.113","deleteOldBackup":true,"ownDir":true,"bkpType":"Minimal","dir":"/R_Backup_HomeMatic/ioBroker/ioBroker","dirMinimal":"R_Backup_HomeMatic/ioBroker/ioBroker","dirTotal":"R_Backup_HomeMatic/ioBroker/ioBroker","user":"iobroker","pass":"****","backupDir":"/opt/iobroker/backups"} [DEBUG] [mysql] - done [EXIT] 0 [DEBUG] [mysql] - MySql File deleted! [DEBUG] [history] - backitup.0.history.html [EXIT] 0 [DEBUG] [umount] - done [EXIT] 0`[/email][/email]
-
Deine Einstellungen für mysql sind nicht richtig konfiguriert.
Prüfe diese bitte.
IP ist normal localhost und Port 3306.
Wenn der Haken gesetzt ist, wird mysql beim minimal gesichert.
Gesendet von iPhone mit Tapatalk
-
Hier die Einstellungen
Ausser dem Pfad rechts unten habe ich alles eingetragen. Da steht, man kann es frei lassen.
-
Wenn der Haken gesetzt ist, wird mysql beim minimal gesichert. `
Und wann wird gesichert, wenn der Haken nicht gesetzt ist ?
-
Hier die Einstellungen
Ausser dem Pfad rechts unten habe ich alles eingetragen. Da steht, man kann es frei lassen.
filename="Screenshot 2018-12-02 17.42.24.png" index="0">~~ `
Ja und da steht die 114 als IP.
Wo läuft dein mysql? Doch nicht auf der 114 oder?
Der Standard Port ist 3306.
Gesendet von iPhone mit Tapatalk
-
-
Hallo
der Speicherort für das Backup ist auf 192.168.1.113 (funktioniert für Minimal Backup)
Der SQL Server läuft auf 192.168.1.114 Port 3307 (funktioniert für sql Adapter)
ioBroker läuft auf 192.168.1.161 (RasPi)
-
Dann hast du doch die Erklärung, was die 114 ist.
Hast du mysqldump denn überhaupt als Paket installiert?
Gesendet von iPhone mit Tapatalk
-
Hast du mysqldump denn überhaupt als Paket installiert? `
Ich vermute mal - Nein
PS über apt-get wird das Paket mysqldump nicht gefunden. Wie macht man das ?
-
Hallo
die Installation von
apt-get install mysql-client
war die Lösung
Jetzt ist der Befehl mysqldump verfügbar und in dem erzeugten Archiv sind auch Daten.
Danke für die Geduld.
-
Ab sofort ist die Version 0.3.9 im Github Online und ab morgen früh im latest.
0.3.9 (03.12.2018)
(simatec) Fix cifs/nfs mount and umount