Skip to content

Instantly share code, notes, and snippets.

@dimfeld
Last active August 29, 2015 13:57
Show Gist options
  • Save dimfeld/9811210 to your computer and use it in GitHub Desktop.
Save dimfeld/9811210 to your computer and use it in GitHub Desktop.
Easily configure and unconfigure the Crashplan client to connect to a headless server, from a Mac client. This could be made much more general but suffices for my needs.
#!/bin/sh
echo servicePort=4200 >> ~/Library/Application\ Support/CrashPlan/ui.properties
echo Open your Crashplan client after the SSH session connects.
# Change $SERVER to the hostname or IP of your server. Or just pause here.
ssh -L 4200:localhost:4243 $SERVER
echo Reverting settings file...
sed -e /servicePort/d -i bak ~/Library/Application\ Support/CrashPlan/ui.properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment