SHARE
TWEET

TimeMachine Diff script

applehelpwriter May 11th, 2016 113 Never
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. #
  7.  
  8.  
  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
Top