Hallo Zusammen,
Ich habe ein Problem bei dem ich nicht weiter komme.
Das Ziel ist es das mein rpi4 automatisch Backups von der SD Karte macht und aufs NAS schiebt.
Bei der NAS handelt es sich um ne Qnap NAS.
showmount -e <IP> gibt folgendes aus:
Dann habe ich /etc/auto.nfs mit folgendem Inhalt:
Außerdem habe ich noch /etc/auto.master
Code
#
# Sample auto.master file # This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options] # For details of the format look at auto.master(5).
#
#/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev" # options are explicitly given.
# #/net -hosts
# # Include /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file. #
+dir:/etc/auto.master.d
#
# Include central master map if it can be found using
# nsswitch sources. #
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master /home/RpiBackups /etc/auto.nfs
Alles anzeigen
Starte ich nun den autofs Dienst (neu), wird der Ordner RpiBackups in /home/ erstellt.
Nur leider gibt das ls Kommando nichts aus.
Code
pi@rpi4server:~ $ ls /home/
pi RpiBackups
pi@rpi4server:~ $ ls /home/RpiBackups/
pi@rpi4server:~ $
Der Ordner ist allerdings auf der NAS nicht leer. Wenn ich den Ordner mittels mount mounte, funktionierts einwandfrei.
Hat jemand eine Idee?
Viele Grüße und schönes Wochenende