Last active
January 3, 2016 16:29
-
-
Save simlun/8489781 to your computer and use it in GitHub Desktop.
Revisions
-
simlun revised this gist
Jan 18, 2014 . 1 changed file with 5 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,10 @@ #!/bin/bash -ex # # Example usage: # $ ./dropbox-reconciliation.sh 192.168.0.17 # REMOTE_HOST=$1 EXCLUDES="-name '*.DS_Store' -or -path './.dropbox.cache*' -or -name 'Icon*' -or -name .dropbox" -
simlun created this gist
Jan 18, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ #!/bin/bash -ex REMOTE_HOST=$1 EXCLUDES="-name '*.DS_Store' -or -path './.dropbox.cache*' -or -name 'Icon*' -or -name .dropbox" EXEC="-type f -exec md5 -r \"{}\" \;" FIND="find . \! \( $EXCLUDES \) $EXEC" diff <(cd ~/Dropbox; bash -c "$FIND") \ <(ssh $REMOTE_HOST "cd ~/Dropbox; bash -c \"$FIND\"") \ | less