2010-06-27

How to get CrashPlan to back up to a network drive (NAS)

CrashPlan is a great backup program that has many great features. I won’t go into detail describing them all but I will point out that the one major missing feature is the ability to backup to a network drive (also called Network Attached Storage, or a NAS). After reading through many forum posts and seeing that CrashPlan has no work around for this I was able to piece together a solution.

IMPORTANT: This process involves running CrashPlan as another user and may mess up the integrate of your existing backups on the CrashPlan servers! I have not tested this solution with CrashPlan Central and I take not responsible to fouled up backups! Please read and understand all instructions before starting.

1: Install Crash Plan

Download and install CrashPlan from their website. Once CrashPlan is installed and you make (or log into) a CrashPlan account you should see this screen:

Get CrshPlan to work with Network drives or a NAS

Now you can close CrashPlan

2. Now you have two options:
     A: Install CrashPlan on your NAS and use the ‘Back up to another computer’ or Backup to a friend’ option. If your NAS is simply a Windows/*nix box attached to the network, then I highly recommend this. Backing up to and running archive maintenance on another CrashPlan client over a LAN is much faster then backing up to a shared network folder (option B). If you can’t install CrashPlan to your NAS, then use  option B.

    B: Backup directly to shared network folder. This option has the same speed backups as option A, however backup syncing and maintenance will be extremely slow. If you can’t install CrashPlan to your NAS, then follow these steps you make your backup folder/drive accessible to the CrashPlan service.

A lot of custom made NAS devices have special ways of making their folders available on a network. You should read the help files and guides that can with your NAS on how to do this. The folder/drive you want to backup to should be able to be read and written to (you should be able to make and delete files) by anyone on the network. If it is not then CrashPlan will say “"The backup engine does not have access to the given location." and you wont be able do backup to the folder/drive.

On Windows, to make a folder available on the network that has read and write access for everyone, do the following:

Right click on the drive/folder and select properties. Click on the Security tab and then on the Edit button. Click Add and then type ‘everyone’ without quotes into the box labeled “Enter the object names to select”. Now click on OK. Select Everyone from the group or user name list and then check the box next to Full Control and under Allow. Now click OK and then Ok.

Click to enlarge

Now the backup folder/drive can be written to and read by everyone accessing the computer. Next you have to make the folder available on the network. To do this right click on the backup folder/drive and click on Properties. Then click on the Sharing tab and click on the Advanced Sharing button. Check the box next to ‘Share this folder’ and then enter the name you want to call the shared folder. Now click on the Permissions button and select Everyone in the new window. Now check the box next to Full Control and under Allow and then click on Ok, then Ok and finally OK.

Click to enlarge

3: Make a symlink to the shared folder

Now you need to make a symlink on your computer the backup folder on your NAS. If you are using Windows XP or are uncomfortable with the command line then follow the directions over at The How To Geek on how to do this. To create a symlink with Vista or 7 use Windows Explorer to navigate to the back up folder on your NAS. Then right click on the address bar and select “Copy Address as Text”

Get CrashPlan to work with Network drives or a NAS

Now open a command prompt as an administrator and type in this command:

mklink /d “local\directory” “\\server\share”

So for me to make a symlink at the root of my C drive called NAS to the backup folder on my NAS I would have to type this: mklink /d “C:\NAS” “\\HP-NAS\Backups\”

Get CrshPlan to work with Network drives or a NAS
Once the symlink is made you can type “exit” to close the command prompt.

4: Make a CrashPlan user account

Now go the the User Accounts panel in the control panel and click on “Manage another account”. Click on “Create a new account and and then create an account called CrashPlan (the name doesn’t make, you can make it what ever you want) and set the account type to “Administrator”. It has to be an administrator account because otherwise you will net be able to backup files within your user folder.

Click on the “Create Account” button and give the new CrashPlan account a password.

Next you need to click on the Start Orb and then on the little arrow next to the shutdown button and click on “Switch user”.

Get CrshPlan to work with Network drives or a NAS

Next you log into the new CrashPlan account and then once the desktop is up you can log right back out and into your normal account.

5. Make the CrashPlan service run as the CrashPlan user

Now click on the Start Orb and type in “Services” and then click on the result that is called Services. Find the “CrashPlan Backup Service” and double click on it to bring up its properties dialog box. Click on the Log on tab and select the radio next to “This Account”. Now type in the user name and password for the CrashPlan Windows account you just made.

Get CrshPlan to work with Network drives or a NAS

Now click on Apply then go back to the “General” tab and click the “Stop” button and once the service has topped click on the “Start” button. Exit out of the Service window and open up CrashPlan

6. Add Folders and Backup!

In the main CrashPlan Window click on the “Folder” button in the '"Backup Destinations” box. Now click on the “Select” button and select the symlink you made in step 2.

Get CrshPlan to work with Network drives or a NAS

Once you add the symlink click on the “Start Back” button and it should look like this:
Get CrshPlan to work with Network drives or a NAS

Now click on the “Backup” tab on the upper left of the program and click on the “Change” button in the “Files to Back Up” box. Now select the folders you want to back up and then click OK.

Get CrshPlan to work with Network drives or a NAS

If all goes well then CrashPlan should back up with out a hitch.
Get CrshPlan to work with Network drives or a NAS

I have tested the back up and restore and everything worked fine. You can now take advantage of the free 30-day CrashPlan Central online back up.

If this work around for getting CrashPlan to backup to a NAS has worked for you then please let us know by leaving a comment, no log in required! Or you can email us at CaseyTech@GMX.com !

19 people talked about this:

Anonymous said...

Perhaps you should point out which versions of Windows this works for.. On XP mklink gives me error so is this just for Vista & Win7?

Casey Tech said...

I have posted a link in the update at the beginning of the article which will show you an easy way to make symlinks in XP.

leeroy said...

Done everything you suggest but I get the error "the backup engine does not have access to the given location"

I have created the user in windows, logged on (then off) and setup the user on my qnap NAS with full read/write access. If I log on as the crashplan user I can create/delete files....any ideas?

Casey Tech said...

Leeroy, all of the steps in the article are to be done on the computer to be backed up. You do not have to do any of these steps on your NAS. Make sure the account you created is an Administrator account and make sure that your user account is also an Administrator account. If this still doesn't work then you may want to try adding "Everyone" to the folder permissions.

Anonymous said...

I'm also getting the "the backup engine does not have access to the given location"-error. Have added "everyone" to the folder permissions. Still doesn't work :-(

Casey Tech said...

Make sure that when you created the CrashPlan user account that it was an administrator account and that it has a password. Log into the Crashplan account so the account can be initialized and then log out of it. Then double check to make sure that you are running the CrashPlan back up service as the CrashPlan user account.

I have tried this on a few different Vista and 7 computers and, when following all steps carefully, have had no problems.

CaseyTech said...

The article has been updated with a possible solution to the "the backup engine does not have access to the given location" problem. This is step 2a and 2b. I'm sorry for any inconvenience this may have caused but please understand that I have had my NAS set up for a while before I tried CrashPlan and I didn't remember all of the settings that I had changed on the backup drive.

dkohn said...

There is a MUCH easier way:
1) Get NetDrive (http://www.netdrive.net -- it's free for non-commercial use).

2) Disconnect any mapped drives you have for your NAS (actually you might not have to -- try it out)

3) Create a a new site in NetDrive
a) The IP is the local IP for your NAS
b) leave the port as 21
c) Leave server type as FTP
d) Select a drive letter
e) For account and password, enter the user name and password you use to connect to your NAS
f) check the boxes to autologin when system starts

In 'Options' uncheck the Launch windows explorer when connected to server

Now test your connection. If it works, you'll have a new, regular drive showing up in explorer as if it was internal to your computer. CrashPlan will see it the same way and you'll be able to select it for backup.

Firewall considerations: NetDrive uses a reverse authorization which comes in on another port that escapes me, like 113 or something. If you can't sucessfully connect, first make syre that the user name and password you're trying work for your NAS. Also make sure that you enabled FTP on your NAS. If you can't connect after this, the issue will be with your firewall. In Norton I simply added a rule allowing all traffic to and from the particular computer I have crashplan installed on which originates from within my LAN and that allowed the connection to work.

CrashPlan sees the new drive no different than my OS drive (C:) and I can back the whole thing up.

Sextronix said...

Has anyone else had an issue with only SOME files being selected on their NAS? I have 916 GB of data and only 106 GB is selected for backup. I've checked all the excludes and can see no reason for this. NAS is QNAP TS-410.

Mike Mayott said...

Folks, like most of you I have had a difficult time getting this idea and the solution from crash plan to work on an XP Pro box with a Buffalo TerraStation. After looking at the posts I noted the need to map a drive at the system level which led me to test running a command line "net use" from within a .bat file at start-up at computer level using GroupPolicy snapin.

My bat file is: net use S: "\\192.168.1.2\users". Note I used the IP address and complete path in quotes to avoid any addressing issues to the Buffalo NAS.

To use the GroupPolicy snapin from the "run" menu type gpedit.msc.

In GroupPolicy select Computer Configuration, Windows Settings, Startup.

In Starup select Add and browse to where your script is. I placed my script in a directory in the root called Scripts rather than using the default which is buried in Windows\Group Policy\Login\Scipts

After making these settings reboot which allows the NAS drive to be mapped at the system level. Once booted one simply goes into Crash Plan and selects "folder" as destination and the mapped drive will be present.

I trust this is helpful and works for you as well.

Anonymous said...

excellent tutorial, Casey. I linked to it on my Facebook page.

This link is -great- for those people wanting to use Crashplan to backup to their NAS. You'll have found out that Crashplan for Windows doesn't allow connections to network shares, there is a technical reason for this, and crashplan developers are trying to get UNC paths working (\\computer\share) but it isn't due anytime soon.

Anonymous said...

Thanks. This worked perfectly!

Anonymous said...

To Sextronix:

Whatever user you set to run the service as doesn't have authority to those files. Change the user in services to an admin and you'll be gtg.

Workshop2 said...

PERFECT! Many thanks :)

Anonymous said...

dkohn,
You make life easy, it works great.

Thanx a lot :)

Anonymous said...

Thanks! You're super awesome! :)

Anonymous said...

fiddled with a number of the methods to map folders to my NAS drive. crashplan would see the folders, but nothing in them. I tried the netdrive method over ftp and it worked immediately on my xp and windows7 machines. thanks for the info.

Anonymous said...

I follwed the method described here, but have Crashplan running with my Username credentials, with the backup share also only being open to my Username (which has Administrator level rights, by the way) and it works perfectly. I used the iSCSI method before (makes the backup drive appear as a local drive to CP), but had a lot of corrupted files on the backup drive appearing over time. The Symbolic Link method seems to be working way better, but one can only hope that CP does incorporate UNC soon!

Mark Robert said...

Worked for me with Windows 7 and a DLINK NAS. Thanks