Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.36 KB

README.rst

File metadata and controls

43 lines (29 loc) · 1.36 KB

Docker CrashPlan

NOTE As of version 4.3.0, I'm unable to get this working headless anymore. Moving on to other backup schemes...

This is a Dockerfile to set up Crashplan.

Build

First create a data-only volume for the CrashPlan software to live along with it's cache and logs. This is necessary to make sure you receive all the automatic updates and to retain program status between runs:

docker run -v /opt/crashplan --name crashplan_data scratch true &> /dev/null

Now build the Docker image:

docker build --rm -t crashplan .

Run

On the first run, CrashPlan will be installed to the data-only volume at /opt/crashplan. Mount whatever backup volumes are desired using -v (or --volumes-from if the data is in a container). Systemd service file is also available.

docker run -h <host_name> -d --volumes-from crashplan_data -v /mnt/backup:/mnt/backup -p 4243:4243 -p 4242:4242 --name crashplan_run crashplan

Access

On the client, follow the instructions for running a headless client using SSH. To summarize:

# sed -i 's/.*servicePort.*/servicePort 4200/' /opt/crashplan/conf/ui.properties
$ ssh -fNL 4200:localhost:4243 homeserver
$ CrashPlanDesktop