Last active
September 23, 2021 17:17
-
-
Save gerco/fe7bb0f27bf345b3acb9a3a483f73d1c to your computer and use it in GitHub Desktop.
Get the on-disk size of all chunks in a Proxmox Backup Server backup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datastore=/bulkpool/backups | |
backup=vm/100/2021-09-19T06:00:02Z | |
cd $datastore/$backup | |
for x in `xxd -s +4096 -p -c 32 *.img.fidx` | |
do | |
ls -l $datastore/.chunks/${x:0:4}/$x | awk '{print $5}' | |
done | paste -sd+ | bc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment