CrashPlan comprises of two parts: The front end GUI and a Java-based engine. The first job I did was to customise the backup window so that it only backs up overnight. As my Mac is on all the time, this is not a problem. The reason for this is that I'm asleep and not using the computer, and my ISP, Plusnet, have a monthly bandwidth allowance, but 12am-8am traffic is not counted.
In order to work around the memory leak issue, I've created two root cron jobs to start up the engine just before it's needed, and shut it down again afterwards. To do this requires the UNIX command prompt (open the Terminal app):
First, open a root prompt by running a BASH shell:
$ sudo bash
(enter your password here)
Then edit the crontab by running:
# crontab -e
Enter the following lines:
# Start CrashPlan engine at 5 minutes to midnight in time for overnight run
55 23 * * * /bin/launchctl load /Library/LaunchDaemons/com.crashplan.engine.plist
# Stop CrashPlan engine at 5 minutes past 8am to free memory after overnight run
05 08 * * * /bin/launchctl unload /Library/LaunchDaemons/com.crashplan.engine.plist
Edit the vi editor (hit escape, then type :wq! and hit return).
You can view your crontab by running:
# crontab -l
This gives the benefit of overnight CrashPlan backups, but without having any unnecessary services running in the background during the day.
No comments:
Post a Comment