4 April 2012, 12:54 UTC
Life is a constant war against the limited size of backup media. Here is my next weapon in the fight: dusub. Save a du listing today, then find out tomorrow or next week what's been growing:
dusub: Subtract two 'du'-style listings
Life is a constant war against the limited size of backup media. Here is my next weapon in the fight: dusub. Save a du listing today, then find out tomorrow or next week what's been growing:
dusub olddu newduor
du … | dusub oldduPositive numbers in the output represent an item that grew since olddu; negative numbers represent a decrease in size since olddu.
Version 2 knows about "du -h"-style listings.
dusub is useful with sorttop:
du … | dusub olddu | sorttop
Files currently attached to this page:
dusub-v2.py | 2.4kB |
dusub.py | 1.4kB |
All older entries
Website Copyright © 2004-2024 Jeff Epler