forked from TrueCloudLab/rclone
mount: Added _netdev to the example mount so it gets treated as a remote-fs rather than local-fs
Signed-off-by: Anagh Kumar Baranwal <6824881+darthShadow@users.noreply.github.com>
This commit is contained in:
parent
9f3694cea3
commit
d06bb55f3f
1 changed files with 4 additions and 2 deletions
|
@ -407,18 +407,20 @@ mount sftp1:subdir /mnt/data -t rclone -o vfs_cache_mode=writes,sftp_key_file=/p
|
||||||
or create systemd mount units:
|
or create systemd mount units:
|
||||||
|||
|
|||
|
||||||
# /etc/systemd/system/mnt-data.mount
|
# /etc/systemd/system/mnt-data.mount
|
||||||
|
[Unit]
|
||||||
|
Description=Mount for /mnt/data
|
||||||
[Mount]
|
[Mount]
|
||||||
Type=rclone
|
Type=rclone
|
||||||
What=sftp1:subdir
|
What=sftp1:subdir
|
||||||
Where=/mnt/data
|
Where=/mnt/data
|
||||||
Options=rw,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
|
Options=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/etc/rclone.conf,cache-dir=/var/rclone
|
||||||
|||
|
|||
|
||||||
|
|
||||||
optionally accompanied by systemd automount unit
|
optionally accompanied by systemd automount unit
|
||||||
|||
|
|||
|
||||||
# /etc/systemd/system/mnt-data.automount
|
# /etc/systemd/system/mnt-data.automount
|
||||||
[Unit]
|
[Unit]
|
||||||
Before=remote-fs.target
|
Description=AutoMount for /mnt/data
|
||||||
[Automount]
|
[Automount]
|
||||||
Where=/mnt/data
|
Where=/mnt/data
|
||||||
TimeoutIdleSec=600
|
TimeoutIdleSec=600
|
||||||
|
|
Loading…
Add table
Reference in a new issue