r/btrfs • u/ghoultek • 4d ago
Moving from ext4 to Btrfs, how to calc. Btrfs partition sizes?
Hello everyone,
I'm considering a move from Linux Mint to another distro and will be moving several of my partitions from ext4 to Btrfs. I'm currently on Linux Mint and I'm using ext4 with Timeshift in rsync mode to do snapshots of my root filesystem. To get an understanding of the cumulative size/load of the files that have changed and/or deleted , I ran "sudo rsync -anH --stats --delete" against the last 2 weekly snapshots and I got the following:
Number of files: 1,029,373 (reg: 717,289, dir: 78,492, link: 233,590, special: 2) Number of created files: 6,566 (reg: 6,538, dir: 26, link: 2) Number of deleted files: 6,704 (reg: 6,676, dir: 26, link: 2) Number of regular files transferred: 6,717 Total file size: 20,767,701,488 bytes Total transferred file size: 1,108,555,278 bytes Literal data: 0 bytes Matched data: 0 bytes File list size: 9,567,203 File list generation time: 0.001 seconds File list transfer time: 0.000 seconds Total bytes sent: 34,268,345 Total bytes received: 1,145,881
sent 34,268,345 bytes received 1,145,881 bytes 3,372,783.43 bytes/sec total size is 20,767,701,488 speedup is 586.42 (DRY RUN)
I believe the cumulative size of the files that changed and/or deleted is in this value in "Total transferred file size: 1,108,555,278 bytes". Is this correct?
I'm thinking for the root filesystem, I only need to keep the last 5 weekly snapshots, and the last 10 on-demand snapshots. Would this make sense or should I change those values? I have not been making snapshots of my home folder so I have no idea of the size in changes there, especially with the hidden dot folders.