Skip to main content
Code42 Support

Setting Up A Single-Server Test Environment

Applies to:
  • CrashPlan PROe


This tutorial explains how to set up a single-server test Code42 environment that simulates your production Code42 environment. You can use the test environment to perform upgrade and feature testing without impacting your production environment.

If you have a multi-server production Code42 environment, see Setting Up A Multi-Server Test Environment


Code42 environment

Term encompassing all components of a Code42 for Enterprise environment, with one authority master server. Components may include: Code42 servers, administration console, organizations, users, devices. Example usage: Go to Settings > Security > LDAP to enable LDAP integration for your Code42 environment.

host server
A physical or virtual server that hosts a Code42 server.
production Code42 environment
The Code42 environment that supports the day-to-day operations of your business.
test Code42 environment
A Code42 environment that is dedicated to testing and separated from your production Code42 environment.

Before You Begin

  • ​Make sure your test Code42 environment is completely separated from your production Code42 environment to avoid unintended interaction during testing.
  • Allocate a physical server or virtual machine to host the test enterprise server.
  • Allocate a separate computer or virtual machine to run the test CrashPlan app and SharePlan app.

Step 1: Gather Information From Your Production Code42 Environment

  1. Sign in to your production Code42 server's administration console.
  2. Navigate to Settings > Server.
  3. Record the following information:
    • Current server version
    • Primary network address
    • Secondary network address
  4. From the action menu, select Dump Database.
    The database dump is written to the host server's file system. The location varies by operating system:
    • Linux: /var/opt/proserver/dumps
      ​Applies to Code42 servers installed as root on Ubuntu
    • Windows: C:\ProgramData\PROServer\dumps
    • OS X: /Library/Application Support/CrashPlan/PROServer/dumps
  5. Copy the database dump to your test server.
  6. If you have enabled automatic secure keystore, copy the password file to your test server.
    The password file is written to the host server's file system. The location varies by operating system:
    • Linux: /var/opt/proserver/ksp
      ​Applies to Code42 servers installed as root on Ubuntu
    • Windows: C:\Program Files\CrashPlan PROe Server\data\ksp
    • OS X: /Library/Application Support/CrashPlan/PROServer/ksp

Step 2: Set Up The Test Enterprise Server

  1. Disconnect your host server from your production network.
    This prevents your test enterprise server from interacting with devices or sending alert emails to users or administrators.
  2. Assign an IP address to the host server.
    If possible, use an IP address that matches your production enterprise server to simplify the configuration process.
  3. Make sure that the host server's host name resolves to the correct IP address by taking one of these actions:
    • If your test environment has a dedicated DNS server, configure a DNS record for the server.
    • Edit the hosts file on the server to add an entry for the server.
      An example entry might read:
  4. On the host server, install the enterprise server version that matches your production Code42 environment.

Step 3: Import The Database Dump

On the test enterprise server, import the database dump from your production Code42 environment.

There are two ways to import the database dump:

  • Use the restore_database script to import a database dump. You must use the command line to access the restore_database script, but you do not need your master license key.
  • Use the administration console to import a database dump. You must have your master license key to access the administration console for the first time.

Importing With The Restore_Database Script

  1. Open a command line interface with administrative privileges on your new server:
    • Linux: Terminal or equivalent for your distribution
    • Windows: Command or PowerShell
    • OS X: Terminal
  2. Navigate to the directory for the Code42 server command line tools:
    • Linux/opt/proserver/bin
      ​Applies to Code42 servers installed as root on Ubuntu
    • WindowsC:\Program Files\CrashPlan PROe Server\bin
    • OS X/Applications/
  3. Run the restore_database command on the location of the database dump you want to import. For example, on Linux:
    sudo ./ /var/opt/proserver/dumps/proserver-db_1332824401321_2012-06-26_121011.sql.gz

For more information, refer to the Command Line Tools reference.

Import Database Dump Using The Administration Console

  1. Sign in to the administration console.
  2. Go to Settings > Server > Action Menu > Import Database
  3. Import the database from desired location. Database dumps are ordered by date.
  4. Click Submit. Two notifications appear:
    1. "Database import submitted. Server will shut down."
    2. "Server connection has been lost."
  5. The server imports the selected database.
  6. Select Reconnect to reload the administration console sign-in page.
  7. Sign in to the administration console to verify your changes.

Step 4: Configure Store Points

The store points from your production Code42 environment will not function on your test enterprise server if the corresponding directories do not exist on the file system. To make your test enterprise server functions correctly, disable existing store points and create a new store point for testing.

  1. Sign in to your test master server's administration console.
  2. Navigate to Destinations > Store Points.
  3. Configure each existing store point to reject new archives:
    1. Click the name of the store point.
    2. From the action menu, select Reject New Archives.
  4. Create a new store point for testing.
    1. Navigate to Destinations > Servers.
    2. Click the name of the test Code42 server.
    3. From the action menu, select Add Store Point.
    4. Configure store point settings:
      • Name: Enter a descriptive name.
      • Path: Enter the path to a directory that currently exists on the file system.
        The host Code42 server must have permission to write to this directory.
      • Note: (Optional) Enter descriptive notes. 
    5. Click Create.

Step 5: Set Up Test CrashPlan Devices

  1. Download the CrashPlan app from the test master server's administration console.
    • If the Welcome to Code42 message appears when you sign in, click CrashPlan to download the apps.
    • If the message does not appear, navigate to Devices, then click Add a new device to download the apps.
  2. Install the CrashPlan app on a test device.
    Customized installers should not be used for upgrade testing.
  3. Register the CrashPlan app under a new user account.
    If your Code42 environment uses LDAP or SSO to authenticate users, register the user in an organization that uses local authentication.
  4. Use the CrashPlan app to back up a small amount of data to the test Code42 server.