This script enables you stop and start CrashPlan / Code42 backup on OS X
If you are concerned about exceeding data usage plans if you are tethering etc., you can utilize this script but be aware that your data WILL NOT BE BACKED UP
To launch the UI agent in the menubar, you'll need to open CrashPlan app after you have started the background service (daemon)
Credits: Most of this script is borrowed from Steve Jansen's script to Start/Stop Symantec Endpoint Protection and CrashPlan documentation
sudo curl https://gist.githubusercontent.com/eapen/323b0ac5f2c9b48ae8cf9c6d0ce68ae6/raw/code42 -o /usr/local/bin/code42
sudo chmod 755 /usr/local/bin/code42
sudo chown root:staff /usr/local/bin/code42
If your user account is not a member of the admin
group (i.e., not an OS X Administrator),
you need to add the following line to /etc/sudoers
using sudo visudo
tool:
myusername ALL= NOPASSWD: /usr/local/bin/sep
me:~$ code42 stop
/usr/local/bin/code42: relaunching as sudo /usr/local/bin/code42 stop me
/usr/local/bin/code42: unloading CrashPlanService daemon and UI widget
me:~$ sudo /usr/local/bin/code42 start
/usr/local/bin/code42: relaunching as sudo /usr/local/bin/code42 start me
/usr/local/bin/code42: launching CrashPlanService daemon
me:~$ code42 status
me:~$ code42 status
/usr/local/bin/code42: relaunching as sudo /usr/local/bin/code42 status me
/usr/local/bin/code42: checking whether service is running
off
me:~$ code42 status
/usr/local/bin/code42: relaunching as sudo /usr/local/bin/code42 status me
/usr/local/bin/code42: checking whether service is running
off