14.01.10
ftplicity/duply/duplicity: Get list of files in backup sorted by size
To get a list of files in your current backup, sorted by (current) file size, you can use the following snippet, which will create a file backup-size.list with the result.
Code:
for i in $(ftplicity moby list | tail -n +10 | head -n -1 | cut -b26-); do | |
FILE="/$i"; | |
test -f $FILE && du $FILE; | |
done | sort -n -r > backup-size.list |
I've used this to find the biggest files in the current backup which are not required to get backed up and excluded them via the exclude list feature of ftplicity/duply/duplicity (ftplicity or duply are frontends for duplicity).






