NEWS
[gelöst] iobroker Backup auf andere SSD
-
@dgr sagte in iobroker Backup auf andere SSD:
PARTUUID=4cacc907-01 /mnt/SSD2 ext4 defaults,noatime,nofail 0 2
Änder das mal auf
PARTUUID=4cacc907-01 /mnt/SSD2 ext4 defaults,users,noatime,nofail 0 2
Dann
sudo systemctl daemon-reload
-
@thomas-braun said in iobroker Backup auf andere SSD:
sudo systemctl daemon-reload
keine Änderung, gleicher Fehler
-
Hast du die Partionen jetzt nochmal gemountet?
-
@thomas-braun
habe gerade rebbot gemacht. Dann backup:12:23:39.904INFOguiBackup gestartet ... 12:23:39.964DEBUGmountdone 12:23:41.002DEBUGiobrokerhost.raspi2 338 objects saved 12:23:41.024DEBUGiobrokerhost.raspi2 237 states saved 12:23:41.026DEBUGiobrokerhost.raspi2 Validating backup ... 12:23:41.068DEBUGiobrokerhost.raspi2 "config.json" is valid 12:23:41.071DEBUGiobrokerhost.raspi2 "objects.jsonl" exists 12:23:41.073DEBUGiobrokerhost.raspi2 "states.jsonl" exists 12:23:41.125DEBUGiobrokerhost.raspi2 JSONL lines are valid 12:23:41.128DEBUGiobrokerhost.raspi2 The backup is valid! 12:23:41.288DEBUGiobrokerBackup created: /opt/iobroker/backups/iobroker_2024_12_01-12_23_42_backupiobroker.tar.gz 12:23:41.334DEBUGiobrokerThis backup can only be restored with js-controller version 7.0 or higher 12:23:42.295DEBUGiobrokerdone 12:23:43.225DEBUGhistoryDBcompress from historyDB started ... 12:23:43.227DEBUGhistoryDBBackup created: /opt/iobroker/backups/historyDB_2024_12_01-12_23_45_backupiobroker.tar.gz 12:23:43.268DEBUGhistoryDBdone 12:23:44.128DEBUGjavascriptsCreated javascript_tmp directory: "/opt/iobroker/backups/tmpScripts" 12:23:44.180DEBUGjavascriptsTry deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts" 12:23:44.181DEBUGjavascriptsJavascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted 12:23:44.224DEBUGjavascriptsBackup created: /opt/iobroker/backups/javascripts_2024_12_01-12_23_46_backupiobroker.tar.gz 12:23:44.226DEBUGjavascriptsdone 12:23:45.114ERRORcifsError: EACCES: permission denied, open '/mnt/SSD2/iobroker-backup/historyDB_2024_12_01-12_23_45_backupiobroker.tar.gz' 12:23:45.132DEBUGcifsCopy javascripts_2024_12_01-12_23_46_backupiobroker.tar.gz... 12:23:45.133ERRORcifsError: EACCES: permission denied, open '/mnt/SSD2/iobroker-backup/javascripts_2024_12_01-12_23_46_backupiobroker.tar.gz' 12:23:45.135DEBUGcifsdone 12:23:45.698ERRORcleanBackup files not deleted from /opt/iobroker/backups because some errors. 12:23:45.732DEBUGcleandone 12:23:45.862DEBUGhistoryHTMLnew history html values created 12:23:45.950DEBUGhistoryHTMLdone 12:23:46.108DEBUGhistoryJSONnew history json values created 12:23:46.195DEBUGhistoryJSONdone 12:23:46.258DEBUGumountdone 12:23:47.314DEBUGtelegramdone 12:23:48.620DEBUGnotificationAdmin notification will be sent 12:23:48.664DEBUGnotificationdone 12:23:48.782INFOguiDas Backup wurde erfolgreich erstellt!
-
@dgr sagte in iobroker Backup auf andere SSD:
/mnt/SSD2/iobroker-backup/historyDB_2024_12_01-12_23_45_backupiobroker.tar.gz
Welche Rechte hat denn die Datei?
ls -l /mnt/SSD2/iobroker-backup/historyDB_2024_12_01-12_23_45_backupiobroker.tar.gz
-
-
@thomas-braun
Die Datei gibt es nicht, war ja bei Erstellung Zugriff verweigert -
-
pi@raspi2:~ $ ls -l /mnt/SSD2 insgesamt 28 drwxr-xr-x 2 root root 4096 28. Nov 19:11 iobroker-backup drwxr-xr-x 2 root root 4096 1. Dez 10:14 iobroker-history drwx------ 2 root root 16384 23. Nov 08:51 lost+found drwxr-xr-x 11 root root 4096 1. Dez 03:31 raspi2 pi@raspi2:~ $ umount /mnt/SSD2 pi@raspi2:~ $ mount /mnt/SSD2 pi@raspi2:~ $
-
Ich mounte eine SMB-Freigabe z. B. mit uid und gid Optionen:
//fritz.nas/FRITZ.NAS/Hitachi-HTS545012B9SA00-01/iobbackups/chet /opt/iobroker/backups cifs credentials=/home/iobroker/.smbcredentials,users,noserverino,noauto,rw,forceuid,uid=iobroker,forcegid,gid=iobroker,file_mode=0770,dir_mode=0770,vers=3.1.1 0 0
-
Die Dateien dürfen nicht root gehören.
Jedenfalls nicht mit den Rechten. -
@thomas-braun
läuft jetzt:12:44:53.640INFOguiBackup gestartet ... 12:44:53.650DEBUGmountdone 12:44:54.697DEBUGiobrokerhost.raspi2 338 objects saved 12:44:54.701DEBUGiobrokerhost.raspi2 237 states saved 12:44:54.703DEBUGiobrokerhost.raspi2 Validating backup ... 12:44:54.704DEBUGiobrokerhost.raspi2 "config.json" is valid 12:44:54.707DEBUGiobrokerhost.raspi2 "objects.jsonl" exists host.raspi2 "states.jsonl" exists 12:44:54.803DEBUGiobrokerhost.raspi2 JSONL lines are valid host.raspi2 The backup is valid! 12:44:54.961DEBUGiobrokerBackup created: /opt/iobroker/backups/iobroker_2024_12_01-12_44_55_backupiobroker.tar.gz 12:44:55.005DEBUGiobrokerThis backup can only be restored with js-controller version 7.0 or higher 12:44:55.970DEBUGiobrokerdone 12:44:56.873DEBUGhistoryDBcompress from historyDB started ... 12:44:56.876DEBUGhistoryDBBackup created: /opt/iobroker/backups/historyDB_2024_12_01-12_44_58_backupiobroker.tar.gz 12:44:56.917DEBUGhistoryDBdone 12:44:57.776DEBUGjavascriptsCreated javascript_tmp directory: "/opt/iobroker/backups/tmpScripts" 12:44:57.825DEBUGjavascriptsTry deleting the Javascript tmp directory: "/opt/iobroker/backups/tmpScripts" 12:44:57.865DEBUGjavascriptsJavascript tmp directory "/opt/iobroker/backups/tmpScripts" successfully deleted 12:44:57.867DEBUGjavascriptsdone 12:44:58.728DEBUGcifsused copy path: /mnt/SSD2/iobroker-backup 12:44:58.735DEBUGcifsCopy iobroker_2024_12_01-12_44_55_backupiobroker.tar.gz... 12:44:58.737DEBUGcifsCopy historyDB_2024_12_01-12_44_58_backupiobroker.tar.gz... 12:44:58.740DEBUGcifsCopy javascripts_2024_12_01-12_44_59_backupiobroker.tar.gz... 12:44:58.742DEBUGcifsdone 12:44:59.356DEBUGcleandone 12:44:59.493DEBUGhistoryHTMLnew history html values created 12:44:59.539DEBUGhistoryHTMLdone 12:44:59.695DEBUGhistoryJSONnew history json values created 12:44:59.737DEBUGhistoryJSONdone 12:44:59.844DEBUGumountdone 12:45:00.900DEBUGtelegramdone 12:45:02.203DEBUGnotificationdone 12:45:02.353INFOguiDas Backup wurde erfolgreich erstellt!
Änderung war :
sudo chmod a+rwx /mnt/SSD2/iobroker-backup
sudo chmod a+rwx /mnt/SSD2/iobroker-historypi@raspi2:~ $ ls -l /mnt/SSD2 insgesamt 28 drwxrwxrwx 2 root root 4096 1. Dez 12:45 iobroker-backup drwxrwxrwx 2 root root 4096 1. Dez 10:14 iobroker-history drwx------ 2 root root 16384 23. Nov 08:51 lost+found drwxr-xr-x 11 root root 4096 1. Dez 03:31 raspi2
Danke für die Hilfe.
-
Freigabe für Hinz-und-Kunz und alle und jeden geht natürlich immer.
Ist aber ja nicht der Sinn von Rrechten und Rollen.
Aber wenn es so reicht... -
@thomas-braun
habe die Rechte nochmal geändert.