sh crashplan-optimize-upload.sh

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh crashplan-optimize-upload.sh相关的知识,希望对你有一定的参考价值。

#!/bin/bash
##
# Prevents 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 sh ./crashplanFixup
##

# 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 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
open -g "/Applications/CrashPlan.app/Contents/Helpers/CrashPlan menu bar.app"

以上是关于sh crashplan-optimize-upload.sh的主要内容,如果未能解决你的问题,请参考以下文章

sh sh_template.sh

sh sh.sh

Linux下面如何运行 SH文件

配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh

shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别

linux下sh文件的运行