Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agronick/btrfs-size
A script that will print out a list of BTRFS subvolumes along with their size in megabytes and their name
https://github.com/agronick/btrfs-size
Last synced: about 1 month ago
JSON representation
A script that will print out a list of BTRFS subvolumes along with their size in megabytes and their name
- Host: GitHub
- URL: https://github.com/agronick/btrfs-size
- Owner: agronick
- Created: 2015-05-26T19:26:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-10-18T18:24:30.000Z (about 1 year ago)
- Last Synced: 2024-08-02T12:50:25.803Z (4 months ago)
- Language: Shell
- Size: 13.7 KB
- Stars: 52
- Watchers: 8
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - agronick/btrfs-size - A script that will print out a list of BTRFS subvolumes along with their size in megabytes and their name (others)
README
# BTRFS-Size
A script that will print out a list of BTRFS subvolumes along with their size in megabytes and their nameYou will need to enable quotas first. Run this command as root: `btrfs quota enable /`
For more information check out this [blog entry](https://poisonpacket.wordpress.com/2015/05/26/btrfs-snapshot-size-disk-usage/).
To invoke just run:
```bash
./btrfs-size.sh
```To run on a directory outside root run:
```bash
./btrfs-size.sh /path
```Example output:
```
Snapshot / Subvolume Total Exclusive Data ID
==============================================================================================================
@ 16.00KB 256
@/home 346.98MB 257
@/boot/grub2/x86_64-efi 4.18MB 258
@/boot/grub2/i386-pc 16.00KB 259
@/.snapshots 640.00KB 260
@/.snapshots/1/snapshot 82.39GB 261
@/.snapshots/391/snapshot 81.52GB 651
@/.snapshots/392/snapshot 81.54GB 652
@/.snapshots/393/snapshot 81.65GB 653
@/.snapshots/394/snapshot 81.59GB 654
@/.snapshots/397/snapshot 81.85GB 657
@/.snapshots/398/snapshot 82.22GB 658
@/.snapshots/399/snapshot 82.24GB 659
@/.snapshots/400/snapshot 82.05GB 660
@/.snapshots/405/snapshot 82.04GB 665
@/.snapshots/406/snapshot 82.32GB 666
@/.snapshots/407/snapshot 82.31GB 667
@/.snapshots/408/snapshot 82.31GB 668
@/.snapshots/409/snapshot 82.34GB 669
@/.snapshots/410/snapshot 82.29GB 670
@/.snapshots/411/snapshot 82.32GB 671
@/.snapshots/412/snapshot 82.51GB 672
@/.snapshots/413/snapshot 82.52GB 673
@/.snapshots/414/snapshot 82.38GB 674
==============================================================================================================
Exclusive Total: 14.89GB
```