Skip to content

Wildcard for excluding filesystems (TimeMachine) #106

@luckman212

Description

@luckman212

duf 0.6.0 from Homebrew

duf produces voluminous output on my system, due to a lot of filesystems mapped by TimeMachine → SMB share on my NAS:

╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ 17 local devices                                                                                                                                                                  │
├───────────────────────────────────────────────────────┬────────┬─────────┬────────┬───────────────────────────────┬───────┬───────────────────────────────────────────────────────┤
│ MOUNTED ON                                            │   SIZE │    USED │  AVAIL │              USE%             │ TYPE  │ FILESYSTEM                                            │
├───────────────────────────────────────────────────────┼────────┼─────────┼────────┼───────────────────────────────┼───────┼───────────────────────────────────────────────────────┤
│ /                                                     │ 931.5G │   14.0G │ 232.3G │ [....................]   1.5% │ apfs  │ /dev/disk1s5s1                                        │
│ /System/Volumes/Data                                  │ 931.5G │  683.1G │ 232.3G │ [##############......]  73.3% │ apfs  │ /dev/disk1s1                                          │
│ /System/Volumes/Preboot                               │ 931.5G │  348.2M │ 232.3G │ [....................]   0.0% │ apfs  │ /dev/disk1s2                                          │
│ /System/Volumes/Update                                │ 931.5G │ 1004.0K │ 232.3G │ [....................]   0.0% │ apfs  │ /dev/disk1s6                                          │
│ /System/Volumes/VM                                    │ 931.5G │    1.0G │ 232.3G │ [....................]   0.1% │ apfs  │ /dev/disk1s4                                          │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  259.2G │   3.5T │ [#...................]   6.7% │ apfs  │ com.apple.TimeMachine.2021-02-02-070031.backup@/dev/d │
│ 23011/2021-02-02-070031.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  266.9G │   3.5T │ [#...................]   6.9% │ apfs  │ com.apple.TimeMachine.2021-02-03-060550.backup@/dev/d │
│ 23011/2021-02-03-060550.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  270.9G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-04-042746.backup@/dev/d │
│ 23011/2021-02-04-042746.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  270.6G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-04-063743.backup@/dev/d │
│ 23011/2021-02-04-063743.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  272.8G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-04-211925.backup@/dev/d │
│ 23011/2021-02-04-211925.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  272.8G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-04-232354.backup@/dev/d │
│ 23011/2021-02-04-232354.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  273.3G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-05-012747.backup@/dev/d │
│ 23011/2021-02-05-012747.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/95A20C74-B2D8-4BF2-B753-966BA63 │   3.8T │  273.5G │   3.5T │ [#...................]   7.0% │ apfs  │ com.apple.TimeMachine.2021-02-05-054028.backup@/dev/d │
│ 23011/2021-02-05-054028.backup                        │        │         │        │                               │       │ isk4s1                                                │
│ /Volumes/.timemachine/nas2._smb._tcp.local./D283BA05- │   4.0T │  274.2G │   3.7T │ [#...................]   6.7% │ smbfs │ //luke@nas2._smb._tcp.local./TimeMachine              │
│ 2364-4C54-B0D4-D0133C60A859/TimeMachine               │        │         │        │                               │       │                                                       │
│ /Volumes/Backups of mini                              │   3.8T │  273.4G │   3.5T │ [#...................]   7.0% │ apfs  │ /dev/disk4s1                                          │
│ /Volumes/Recovery                                     │ 931.5G │  585.3M │ 232.3G │ [....................]   0.1% │ apfs  │ /dev/disk1s3                                          │
│ /Volumes/storage                                      │  10.0T │    4.4T │   5.6T │ [########............]  43.9% │ smbfs │ //luke@nas2._smb._tcp.local/storage                   │
╰───────────────────────────────────────────────────────┴────────┴─────────┴────────┴───────────────────────────────┴───────┴───────────────────────────────────────────────────────╯

I tried various incarnations of -hide, -hide-fs, -only-fs etc but nothing I did worked to exclude those *.timemachine mounts. Is there any way to do this? The fs names are dynamic due to the snapshot nature of the system, so specifying them explicitly isn't really an option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions