Permalink
Browse files

Updates to git and pinboard scripts

  • Loading branch information...
1 parent 3d299e4 commit 1a073bbedd7e0e1cbd4f46a37b3f211328ed6bb2 @matthewmccullough committed Jun 30, 2011
Showing with 21 additions and 3 deletions.
  1. 0 git-compressallrepos
  2. +1 −1 pinboard-backup.sh
  3. +12 −0 timemachine-findonlyononeside
  4. +8 −2 timemachine-verify
View
0 git-compressallrepos 100644 → 100755
No changes.
View
2 pinboard-backup.sh 100644 → 100755
@@ -1,2 +1,2 @@
#!/bin/sh
-curl https://matthew.mccullough:wrorl-eem-vo@pinboard.in/export/ -o pinboard-`date "+%Y-%m-%d"`.html
+curl https://matthew.mccullough:PASSWORDHERE@pinboard.in/export/ -o pinboard-`date "+%Y-%m-%d"`.html
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Change the working directory to the Latest folder on the Time Machine disk and report it
+pushd /Volumes/EXT-ZEUS-TM/Backups.backupdb/*/Latest/*/
+export BACKUPVOLUME="$(pwd -P)"
+echo "Current folder on backup disk: $BACKUPVOLUME"
+popd
+
+# Diff the current directory (the backup volume's Latest folder) against / (the root of the main disk)
+# Redirect error output to system out and tee all output to a log file on the desktop
+# sudo diff -qr "$BACKUPVOLUME" / 2>&1 | grep "Only in" | tee ~/Desktop/timemachine-diff.log
+sudo diff -qr "$BACKUPVOLUME" / 2>&1 | grep "Only in"
View
@@ -1,3 +1,9 @@
-cd /Volumes/EXT-ZEUS2TM*/Backups.backupdb/*/Latest/*/
+#!/bin/bash
+
+# Change the working directory to the Latest folder on the Time Machine disk and report it
+cd /Volumes/EXT-ZEUS-TM/Backups.backupdb/*/Latest/*/
echo "Current folder on backup disk: $(pwd -P)"
-sudo diff -qr . / 2>&1 | tee ~/Desktop/timemachine-diff.log
+
+# Diff the current directory (the backup volume's Latest folder) against / (the root of the main disk)
+# Redirect error output to system out and tee all output to a log file on the desktop
+sudo diff -qr . / 2>&1 | tee ~/Desktop/timemachine-diff.log

0 comments on commit 1a073bb

Please sign in to comment.