AnswerBun.com

How to exclude folders in sshfs mounting?

Is it possible to mount a folder with --no-recursive option and --folder-exclude, maxdepth options?

Unix & Linux Asked on December 30, 2020

1 Answers

One Answer

According to these docs, sshfs doesn't support --no-recursive, --folder-exclude, maxdepth, or anything in the same vein (i.e. limit what's being mounted).

What you could try, if it's feasible for your use case, is make a selective clone of the remote dir on the remote machine, and mount that instead.

Correct answer by junvar on December 30, 2020

Add your own answers!

Related Questions

Cifs mounting subdirectories from linux

1  Asked on December 24, 2021 by s-olesen

     

System bootorder not found

1  Asked on December 24, 2021 by ronin-zeroo

         

Yocto recipe for systemd USER service

2  Asked on December 24, 2021 by nellorocca

   

source .pam_environment file

0  Asked on December 24, 2021 by subbeh

   

No such file or directory /etc/init.d/functions

6  Asked on December 22, 2021 by tecman

 

dd script with timings

1  Asked on December 22, 2021 by lmind

       

Qt: XKEYBOARD extension not present on the X Server

1  Asked on December 22, 2021 by pitosalas

   

Execute zsh alias when name contains a hyphen

2  Asked on December 22, 2021

   

Kali Error while installing any package

3  Asked on December 22, 2021 by parampreet-rai

       

Is there a awk command for searching if a user is logged on?

2  Asked on December 22, 2021 by darunia

 

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved.