CrashPlan Linux Headless

From Michael's Information Zone
Jump to navigation Jump to search

CentOS 7

Server

  • Download and install CrashPlan on both the server and the client.
  • On the server, using the defaults during installation, find the key that allows the ui to interface with the service.
[root@nas crashplan-install]# nano /var/lib/crashplan/.ui_info
4243,xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,0.0.0.0
  • If needed, search the root directory for the file if you didn't use defaults
[root@nas crashplan-install]# find / -name .ui_info
  • Copy the string of characters between the port number and IP address.
  • Now tell the crashplan service to listen for for any IP (0.0.0.0.0 less secure) or specific IPs (more secure) under the serviceHost option.
[root@nas crashplan-install]# nano /usr/local/crashplan/conf/my.service.xml
....
<serviceUIConfig>
    <serviceHost>0.0.0.0</serviceHost>
    <servicePort>4243</servicePort>
....
  • Tell firewalld to allow this port
[root@nas crashplan-install]# firewall-cmd --permanent --add-port=4243/tcp
[root@nas crashplan-install]# firewall-cmd --reload
  • Restart the crashplan service
[root@nas crashplan-install]#  /usr/local/crashplan/bin/CrashPlanEngine restart

Client

  • I installed the client as non-root, so all files are located in my home directory.
  • Backup the .ui_info file
michael@Michael-Home ~ $ cp /home/michael/.crashplan/.ui_info /home/michael/.crashplan/.ui_info.bak
  • Now edit the file to remove the existing key and IP address to reflect the key and IP of the server we want to control
michael@Michael-Home ~ $ nano /home/michael/.crashplan/.ui_info
4243,xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,192.168.xxx.xxxx

At this point we can start the crashplan desktop app.

michael@Michael-Home ~ $ crashplan/bin/CrashPlanDesktop 

If all goes well you should now be prompted for your username and password. Configure as needed and your good to go!