-
thanks so much for building pdu! i was wondering what tracking changes to disk usage might look like for example, imagine running pdu on a system hourly and dumping to json to compare usage from one day to another, you compare the jsons with a semantic diffing tool something like https://www.jsondiff.com/ , or https://github.com/trailofbits/graphtage (this part is actually surprisingly hard) there are a few things that would be nice to make this workflow work better, i wish pdu had the option of ignoring or not listing files, only directories having something like this built in to pdu would be astounding... anyone have any thoughts on this functionality? for now i can't find a better way than having a human just compare the outputs of pdu at two different times |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You may do something like
I'm not sure if this is what you'd like, but here's how I would do it (you are supposed to implement # run this on a schedule
pdu --json-output | sort-pdu-output | pdu --json-input > pdu-$(date -u +%Y-%m-%d).txt # compare them
diff -u pdu-2024-01-01.txt pdu-2024-02-01.txt |
Beta Was this translation helpful? Give feedback.
You may do something like
pdu --json-output | prune-files | pdu --json-input
(you are suppose to implementprune-files
)I'm not sure if this is what you'd like, but here's how I would do it (you are supposed to implement
sort-pdu-output
):# compare them diff -u pdu-2024-0…