TimeMachine Diff script

May 11th, 2016
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # This script compares the most recent backup to the previous one
  2. # indicating what was changed, added or removed
  3. # If you want to know what TM is about to backup, in the Terminal run
  4. #
  5. # tmutil compare
  6. #
  9. set backupList to paragraphs of (do shell script "tmutil listbackups")
  10. if (count of backupList) < 2 then
  11.     display dialog "Sorry, couldn't find anything to compare. Try again after the next backup"
  12. else
  13.     set path1 to quoted form of item -2 of backupList
  14.     set path2 to quoted form of item -1 of backupList
  15.     do shell script "tmutil compare " & path1 & " " & path2 & " | open -f"
  16. end if
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.