Skip to content

Instantly share code, notes, and snippets.

@tetriscode
Forked from thewellington/crashplanFixup.sh
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save tetriscode/4640542a7cae7a414e9d to your computer and use it in GitHub Desktop.

Select an option

Save tetriscode/4640542a7cae7a414e9d to your computer and use it in GitHub Desktop.

Revisions

  1. tetriscode revised this gist Nov 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #!/bin/bash
    #
    # crashplanFixup.sh for Macintosh OS X 10.9 (and probably earlier versions)
    # crashplanFixup.sh for Macintosh OS X 10.10
    #
    # This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
    # Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
  2. tetriscode revised this gist Nov 6, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,4 @@ launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
    open -g "/Applications/CrashPlan.app/Contents/Helpers/CrashPlan menu bar.app"
  3. @thewellington thewellington revised this gist Mar 13, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,4 @@ launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
  4. @thewellington thewellington revised this gist Mar 13, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@
    FILEPATH='/Library/Application Support/CrashPlan/conf/my.service.xml'

    # Sets the <dataDeDupAutoMaxFileSizeForWan> key to 1 - to prevent all files greater than 1k from being deduplicated
    sed -i .bak 's:\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\):\11\2:' "${FILEPATH}"
    sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\)/\11\2/' "${FILEPATH}"

    # Restart CrashPlan
    launchctl stop com.crashplan.engine
  5. @thewellington thewellington revised this gist Mar 13, 2014. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -5,15 +5,15 @@
    # This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
    # Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
    #
    # NOTE: Must be run with sudo! IE: $ sudo crashplanFixup.sh
    # NOTE: Must be run with sudo! IE: $ sudo sh ./crashplanFixup
    #
    # 2014-01-19 by [email protected]
    # v1.1 2014-03-13 by [email protected]

    # This is the path to your my.service.xml file
    FILEPATH='/Library/Application Support/CrashPlan/conf/my.service.xml'

    # Sets the <dataDeDupAutoMaxFileSizeForWan> key to 1 - to prevent all files greater than 1k from being deduplicated
    sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\)/\11\2/' $FILEPATH
    sed -i .bak 's:\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\):\11\2:' "${FILEPATH}"

    # Restart CrashPlan
    launchctl stop com.crashplan.engine
    @@ -22,4 +22,4 @@ launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
  6. @thewellington thewellington revised this gist Feb 14, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -22,4 +22,4 @@ launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
  7. @thewellington thewellington revised this gist Feb 14, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    #
    # NOTE: Must be run with sudo! IE: $ sudo crashplanFixup.sh
    #
    # 2014-01-20 by [email protected]
    # 2014-01-19 by [email protected]

    # This is the path to your my.service.xml file
    FILEPATH='/Library/Application Support/CrashPlan/conf/my.service.xml'
  8. @thewellington thewellington revised this gist Feb 14, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@
    #
    # NOTE: Must be run with sudo! IE: $ sudo crashplanFixup.sh
    #
    # 2014-01-10 by [email protected]
    # 2014-01-20 by [email protected]

    # This is the path to your my.service.xml file
    FILEPATH='/Library/Application Support/CrashPlan/conf/my.service.xml'
  9. @thewellington thewellington revised this gist Feb 13, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    # 2014-01-10 by [email protected]

    # This is the path to your my.service.xml file
    FILEPATH='/Library/Application\ Support/CrashPlan/conf/my.service.xml'
    FILEPATH='/Library/Application Support/CrashPlan/conf/my.service.xml'

    # Sets the <dataDeDupAutoMaxFileSizeForWan> key to 1 - to prevent all files greater than 1k from being deduplicated
    sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\)/\11\2/' $FILEPATH
    @@ -22,4 +22,4 @@ launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app/Contents/MacOS/CrashPlan menu bar"
    open -g "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app"
  10. @thewellington thewellington revised this gist Feb 13, 2014. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@
    # This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
    # Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
    #
    # NOTE: Must be run with sudo! IE: $ sudo crashplanFixup.sh
    #
    # 2014-01-10 by [email protected]

    # This is the path to your my.service.xml file
    @@ -15,6 +17,8 @@ sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFi

    # Restart CrashPlan
    launchctl stop com.crashplan.engine
    launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
  11. @thewellington thewellington revised this gist Feb 13, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -17,5 +17,5 @@ sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFi
    launchctl stop com.crashplan.engine
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - COmment out the next line if this is undesired behavior
    # Launch CrashPlan Menu Bar Extra - Comment out the next line if this is undesired behavior
    open "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app/Contents/MacOS/CrashPlan menu bar"
  12. @thewellington thewellington created this gist Feb 13, 2014.
    21 changes: 21 additions & 0 deletions crashplanFixup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/bin/bash
    #
    # crashplanFixup.sh for Macintosh OS X 10.9 (and probably earlier versions)
    #
    # This script will prevent CrashPlan from de-duplicating data on files greater than 1k.
    # Based on information from http://networkrockstar.ca/2013/09/speeding-up-crashplan-backups/
    #
    # 2014-01-10 by [email protected]

    # This is the path to your my.service.xml file
    FILEPATH='/Library/Application\ Support/CrashPlan/conf/my.service.xml'

    # Sets the <dataDeDupAutoMaxFileSizeForWan> key to 1 - to prevent all files greater than 1k from being deduplicated
    sed -i .bak 's/\(<dataDeDupAutoMaxFileSizeForWan>\)[0-9]*\(<\/dataDeDupAutoMaxFileSizeForWan>\)/\11\2/' $FILEPATH

    # Restart CrashPlan
    launchctl stop com.crashplan.engine
    launchctl start com.crashplan.engine

    # Launch CrashPlan Menu Bar Extra - COmment out the next line if this is undesired behavior
    open "/Applications/CrashPlan.app/Contents/Resources/CrashPlan menu bar.app/Contents/MacOS/CrashPlan menu bar"