Skip to content

Instantly share code, notes, and snippets.

@gerco
Last active September 23, 2021 17:17
Show Gist options
  • Save gerco/fe7bb0f27bf345b3acb9a3a483f73d1c to your computer and use it in GitHub Desktop.
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
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