[gelöst] trotz erfolgreich erstellter Backup-Datei Fehler im Log

Begonnen von TomLee, 21 Mai 2018, 17:36:50

Vorheriges Thema - Nächstes Thema

CoolTux


rm '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TomLee

pi@raspberrypi:/opt/fhem $ rm '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'                                                         
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht möglich: Ist ein Verzeichnis

CoolTux

rm -f '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'

Naja dann halt ein -f damit das Verzeichnis gelöscht wird

Ist in der Tat ein Verzeichnis

drwxr-xr-x  2 fhem dialout   4096 Mai 21 00:12 \\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TomLee

pi@raspberrypi:/opt/fhem $ rm -f '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups" ist nicht möglich: Ist ein Verzeichnis


Trotzdem gleiche Fehlermeldung und die Backslashes werden doch noch verdoppelt.

Wuppi68

vor dem Löschen würde ich noch ein Image Backup unter Windows machen ...

es klingt ein wenig nach einer defekten SD Karte

normalerweise kann man mit tab completion in der Shell eigentlich alles löschen
FHEM unter Proxmox als VM

CoolTux

Ok jetzt aber . Habe es selbst hier getestet


rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TomLee

Zitat... die zwei Ordner da sollen , die wurden gestern von Fhem erzeugt als ich das ...

Möcht ich nicht ausschliessen, aber ich denke es liegt einfach nur daran.
Und das ist nur passiert weil ich alles mögliche in backupdir eingetragen hatte.

TomLee

Haste gedacht:

pi@raspberrypi:/opt/fhem $ rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'                   
rm: das Entfernen von ,,\\\\192.168.188.26\\Festplatte\\Privat\\Raspberry\\FHEM\\Backups/FHEM-20180521_001227.tar.
gz" ist nicht möglich: Keine Berechtigung


Was mir jetzt gerade kommt, es gibt tatsächlich eine Samba-Freigabe die Festplatte heißt.

CoolTux

Es wäre hilfreicher wenn Du das ganze als root oder wenigstens mit sudo machen würdest.
In dem Ordner ist noch eine Datei drin.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

TomLee

Es wäre hilfreicher wenn Du das ganze als root oder wenigstens mit sudo machen würdest.
In dem Ordner ist noch eine Datei drin.


Das ist ja das kuriose, da ist nichts drin. Mit bsw. dem ES-Datei Explorer hab ich auch per root Zugriff, der Ordner ist leer.

Eher zu bezweifeln aber die Samba-Freigabe hab ich jetzt auch mal auskommentiert und neu gestartet.
Dann nochmal

rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'

ausgeführt, ändert nichts.

TomLee

tadaaaaa  :D

pi@raspberrypi:/opt/fhem $ sudo rm -rf '\\192.168.188.26\Festplatte\Privat\Raspberry\FHEM\Backups'               
pi@raspberrypi:/opt/fhem $ ls -l                                                                                 
insgesamt 908                                                                                                   
drwxr-xr-x  5 pi   pi        4096 Dez 28 18:33 alexa-fhem                                                       
drwxrwxrwx  2 fhem dialout   4096 Apr 25 18:30 backup                                                           
drwxr-xr-x  2 fhem dialout   4096 Mai 20 21:14 cache                                                             
-rw-rw-rw-  1 fhem dialout 248937 Mai 21 22:09 CHANGED                                                           
-rw-rw-rw-  1 fhem dialout  84173 Mär 31  2017 config                                                           
-rw-rw-rw-  1 fhem dialout  41123 Apr  3 00:42 configDB.pm                                                       
drwxrwxrwx 40 fhem root      4096 Aug 25  2016 contrib                                                           
drwxr-xr-x  2 fhem dialout   4096 Mai 21 23:40 CSV-FHEM                                                         
drwxrwxrwx  3 fhem root      4096 Aug 12  2015 demolog                                                           
drwxrwxrwx  4 fhem root      4096 Jul 25  2017 docs                                                             
drwxrwxrwx  6 fhem root     24576 Mai 21 22:09 FHEM                                                             
-rw-rw-rw-  1 fhem root    184869 Mai 21 18:07 fhem.cfg                                                         
-rw-rw-rw-  1 fhem dialout  15848 Jan 28 22:10 fhem.cfg.demo                                                     
-rw-rw-rw-  1 fhem dialout 146208 Mai 21 22:09 fhem.pl                                                           
-rwxr-xr-x  1 root root       296 Nov  7  2017 ircmdFR.sh                                                       
-rwxrwxrwx  1 pi   dialout   5602 Nov  7  2017 ircmd.sh                                                         
drwxrwxrwx  2 fhem root     20480 Mai 17 22:42 log                                                               
-rw-r--r--  1 fhem dialout  37253 Mai 21 22:09 MAINTAINER.txt                                                   
drwxr-xr-x  4 fhem dialout   4096 Dez 26 23:44 package                                                           
-rw-rw-rw-  1 fhem root       761 Nov  9  2014 README_DEMO.txt                                                   
drwxrwxrwx  7 fhem dialout   4096 Apr 25 18:31 restoreDir                                                       
drwxrwxrwx  2 pi   pi       36864 Mai 22 07:44 SonosSpeak                                                       
drwxrwxrwx  2 fhem dialout   4096 Aug 20  2015 unused                                                           
drwxrwxrwx 10 fhem root      4096 Mär 19 23:32 www



Dickes Danke an die Helfenden