sh 防止CrashPlan在Mac上重复数据删除。提高传输速度! #mac #blog #crashplan

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 防止CrashPlan在Mac上重复数据删除。提高传输速度! #mac #blog #crashplan相关的知识,希望对你有一定的参考价值。

#!/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/
#
# NOTE:  Must be run with sudo!  IE: $ sudo sh ./crashplanFixup
#
# v1.1 2014-03-13 by bill@wellingtonnet.net

# 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在Mac上重复数据删除。提高传输速度! #mac #blog #crashplan的主要内容,如果未能解决你的问题,请参考以下文章

sh 在Mac上递归删除所有node_modules文件夹

sh 适用于Mac的Docker的屏幕命令(防止重新连接时出现乱码)

MySQL 处理重复数据:防止表中出现重复数据统计过滤删除重复数据

从 Mac 中删除旧的 Postgres 版本 [重复]

在mac上使用sed删除文件中第一次出现的字符串[重复]

Mac上Chrome浏览器如何卸载的方法?