TransWikia.com

How to exclude folders in sshfs mounting?

Unix & Linux Asked on December 30, 2020

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

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!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP