Versuche es mal ohne extra Optionen direkt auf der Konsole.
Code: Alles auswählen
mount -t cifs -o username=xxx,password=yyy //192.168.zzz.zz/public/Sicherung/Homematic /mnt
Moderatoren: jmaus, Co-Administratoren
Code: Alles auswählen
mount -t cifs -o username=xxx,password=yyy //192.168.zzz.zz/public/Sicherung/Homematic /mnt
Wo hast du denn dieses "makeBackup.sh" her? Und was soll dieses /media/usb1/log2file bitte sein bzw. erreichen? Für mich sieht das alles danach aus, das du da Dinge machst die das standardmäßig mitgelieferte cronBackup bereits kann. Siehe hier:4_motion hat geschrieben: ↑04.09.2022, 16:58Die Datei "makeBackup.sh" hat folgenden Inhalt:
Code: Alles auswählen
mount -t cifs -o sec=ntlm,vers=1.0,username=xxx,password=yyy //192.168.zzz.zz/public/Sicherung/Homematic /mnt /bin/createBackup.sh /var/tmp/ cp /var/tmp/*.sbk /mnt cp /media/usb1/log2file/*.csv /mnt rm -rf /var/tmp/*.sbk find /mnt -name "*.sbk" -mtime +180 -exec rm -f {} ; umount /mnt
Vielen Dank für die Hilfe. Ich habe erst einmal das "sec=ntlm" weggelassen und schon hat es wieder funktioniert. Das mit der "vers=1.0" habe ich dann gar nicht mehr ausprobiert.Letztlich ist es der mount-command der nicht mehr geht.
Kurze Recherche Ergab das wohl "sec=ntlm" ab irgendeiner Kernelversion nicht mehr geht, daher das "Invalid argument"
Auch "vers=1.0" ist so ein "Wackelkandidat", geht bei mir nicht mehr "Operation not supported", kann aber auch am Server liegen.
Die "makeBackup.sh" habe ich irgendwo aus dem Netz. Leider weiß ich nicht mehr, woher. Einiges habe ich von "technikkram.net", aber genau kann ich das nicht mehr sagen. In der "makeBackup.sh" habe ich lediglich die IP usw. des NAS eingetragen und die zusätzliche copy-Zeile für die csv-Dateien ergänzt. Alles andere, insbesondere das "/var/tmp" ist original.Wo hast du denn dieses "makeBackup.sh" her? Und was soll dieses /media/usb1/log2file bitte sein bzw. erreichen?
Code: Alles auswählen
mount -t cifs -o vers=1.0,username=xxx,password=yyy //192.168.zzz.zzz/public/Sicherung/Homematic /mnt
/bin/createBackup.sh /mnt
cp /media/usb1/log2file/*.csv /mnt
rm -rf /var/tmp/*.sbk
find /mnt -name "*.sbk" -mtime +180 -exec rm -f {} ;
umount /mnt
richtig verstehe, müsste das integrierte "cronBackup" jede Nacht automatisch ein Backup auf diesem Stick ablegen, da die Datei "/etc/config/NoCronBackup" bei mir nicht vorhanden ist. Die Dateien "/etc/config/CronBackupPath" und "/etc/config/CronBackupMaxBackups" sind auch nicht vorhanden.https://github.com/jens-maus/RaspberryM ... p--restore
Sehr gut.
Der USB-Stick wird i.d.R. als USB1 gemounted. USB0 ist dann nur ein Symlink auf USB1.
Code: Alles auswählen
root@RM-USV-Pi3B-232:~# ls -al /media
total 8
drwxrwxrwt 10 root root 220 Sep 4 14:57 .
drwxr-xr-x 24 root root 4096 Sep 4 05:11 ..
lrwxrwxrwx 1 root root 11 Sep 4 14:57 usb0 -> /media/usb1
drwxr-xr-x 7 root root 4096 Aug 21 05:08 usb1
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb2
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb3
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb4
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb5
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb6
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb7
drwxrwxr-x 2 root root 40 Sep 4 14:57 usb8
Code: Alles auswählen
root@RM-USV-Pi3B-232:~# mount
/dev/sda1 on /media/usb1 type f2fs (rw,lazytime,nodev,noexec,noatime,nodiratime,background_gc=on,nodiscard,no_heap,user_xattr,inline_xattr,acl,inline_data,inline_dentry,flush_merge,extent_cache,mode=adaptive,active_logs=6,alloc_mode=reuse,checkpoint_merge,fsync_mode=posix,discard_unit=block)
Code: Alles auswählen
root@RM-USV-Pi3B-232:~# df -h
Filesystem Size Used Available Use% Mounted on
/dev/sda1 7.5G 451.5M 7.0G 6% /media/usb1
Code: Alles auswählen
mount