CrashPlan on a NAS

June 21, 2016 by Christopher Silvertooth

For those interested in setting up CrashPlan on a NAS but want an easy way to manage the CrashPlan service on your NAS as well as the CrashPlan service on your local Mac I have created a little script to make life easier for you.  If you only run CrashPlan on your NAS then this script isn’t particularly helpful.

I will assume if you are able to install the CrashPlan service on the NAS you are somewhat technically savvy.    Below is a link to an article on how to setup the service.  I won’t rehash that here as there are many good articles on how to do it.

CrashPlan packages for Synology NAS

My script needs to be edited with some of the unique settings for your environment.  You will need the following info:

  • IP of Synology
  • Token ID found in the .ui_info file on your NAS.
  • Token ID found in the .ui_info file on you computer

My script assumes your setup is similar to mine.  I backup my laptop with CrashPlan as well as my NAS.  Because of this I need the Token ID for both my computer and the NAS.

To get the token ID of CrashPlan on your NAS you will need to connect to your NAS via SSH.  Once connected edit the file in /var/lib/crashplan called .ui_info

.ui_info nas

You should see a single entry that is similar to this:

4243,ab12367b-283d-47cf-942f-35478d20b290e,127.0.0.1

Change the 127.0.0.1 to 0.0.0.0.  Once you have saved that change restart the CrashPlan service via the GUI on your Synology.  Once it has restarted go back to that file and verify that it looks like the following:

4243,ab12367b-283d-47cf-942f-35478d20b290e,0.0.0.0

For my setup the Token ID changed on restart following the change to 0.0.0.0.  Not sure if that is normal or a fluke.  That said, you now need to copy the portion highlighted in blue above from your .ui_info file.  DO NOT COPY my Token above… Copy it from your file on your NAS.

Now on your Mac you need the Token ID for your local CrashPlan.  You can find this in

/Library/Application\ Support/CrashPlan/.ui_info

Again, this is the .ui_info file and should look like the example above.  e.g. ff12367b-283d-47cf-942f-35478dasdfad333

Lastly, we need to take all that info and add it into the script.  Open my script in a text editor (VI, Nano, etc) and replace the info at the top of the script with the information your gathered.  Do not use TextEdit or some other desktop text editor as it will mess up the formatting and cause the script to break.  Open terminal and use Nano at the very least.  e.g. nano CrashPlan-NAS.command

  • NASIP=”yourNASIP e.g. 192.168.1.34″
  • NASTokenID=”ab12367b-283d-47cf-942f-35478d20b290e”
  • LocalTokenID=”ff12367b-283d-47cf-942f-35478dasdfad333″

Save the script.

You should now be able to double click the script and it will launch a terminal window asking for your password.  Because the script needs to edit a file in the /Library it requires elevated privileges.  Once you enter your password the script will change your .ui_info file so CrashPlan will look to your NAS for the CrashPlan service.

Screenshot 2016-06-21 13.19.58

 

When you are done quit your CrashPlan app.  Within 10 seconds you should see the process in the terminal complete by stating “resetting CrashPlan for local mode.” This resets your .ui_info file so that you can use CrashPlan to manage your local backups.

Screenshot 2016-06-21 13.20.24

The script can be download from here.  It is called CrashPlan-NAS.  I hope this helps someone.

Cheers,

Chris

 

 

 

apple / Mac Fixes / tools

Comments

Be the first to write a comment.

Leave a Reply

Your email address will not be published. Required fields are marked *