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.
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
You should see a single entry that is similar to this:
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:
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
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″
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.
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.
The script can be download from here. It is called CrashPlan-NAS. I hope this helps someone.
Be the first to write a comment.