borgbackup / borg

Deduplicating archiver with compression and authenticated encryption.
https://www.borgbackup.org/
Other
11.21k stars 743 forks source link

Feature request: exclude by filesystem type #4870

Open NielsH opened 4 years ago

NielsH commented 4 years ago

Have you checked borgbackup docs, FAQ, and open Github issues?

Yes

Is this a BUG / ISSUE report or a QUESTION?

Feature request

Hello!

It is currently possible to add specific paths to exclude from backups, as well as limiting borg to one-files-system. However, it is not yet possible to exclude by filesystem type. I would like to exclude i.e. all tmpfs, proc, bindfs, etc... filesystems that may dynamically be created/removed. So being able to filter and exclude based on the filesystem type would be awesome.

Cheers, Niels

ThomasWaldmann commented 4 years ago

That is OS specific, so not sure if this can be done in a platform independent way. Also, we would need to do that in python / via some library, without calling shell code.

hcgrove commented 3 years ago

Another use case would be being able to exclude filesystems mounted over network (assuming backup of thatis handled on the server) while having local data over several filesystems (thus making --one-file-system unsuitable).

I accept that it isn't easy though.