I configured a remote mount linked to a smb share exposed by the router.
In filesystem page I see that is mounted:
in the home dir I have a symlink to the path where the remote is mounted.
lrwxrwxrwx 1 pi users 42 May 20 07:56 router_drive -> /srv/4892764a-9c63-4689-83c1-4627bbaa2a84/
I have a bash script that triggers rsync from a local folder to this mounted drive.
this is the rsync script:
rsync -av \
The highlight path is the destination path, a symlink to the remote folder as shown above.
What happened yesterday is that, instead of copying stuff to the remote, the script wrote in /home/pi/router_drive/rsync/ files (like the usual behaviour) but instead of the remote this files filled up my root partition. Seems that the mount disappeared so rsync created the folder tree into /home/pi/router_drive/rsync/ but now this was a local folder.
What is the right way to access from ssh a remote mount shared folder?