Skip to content

Instantly share code, notes, and snippets.

@gMagicScott
Last active March 23, 2021 09:56
Show Gist options
  • Save gMagicScott/6998711 to your computer and use it in GitHub Desktop.
Save gMagicScott/6998711 to your computer and use it in GitHub Desktop.
Install CrashPlan for Linux without the hassle of all the interactive prompts. This uses all the defaults, except opening the GUI interface at the end.

CrashPlan Simple Install

CrashPlan is a great backup service allowing local, remote, and premium hosted backups. They even support Windows, Mac, and Linux.

While I can't speak to the install experience for Windows or Mac, on Linux, it's horrible.

It's an interactive install that doesn't take any flags to accept defaults. As a Ubuntu user, there is a new version every 6 months and to make the upgrade process easier, I bash script the installation of all my core programs so I can reformat and be back up an running with ease.

This bash script will download a recent version, untar it, and install it with all the defaults.

#!/usr/bin/env bash
if [[ ! "$(type -P /usr/local/bin/CrashPlanDesktop)" ]]; then
pushd /tmp &> /dev/null
mkdir CrashPlan && cd CrashPlan
echo "Downloading CrashPlan 3.5.3 for Linux"
curl -L http://download.crashplan.com/installs/linux/install/CrashPlan/CrashPlan_3.5.3_Linux.tgz | tar -zx
cd CrashPlan-install
# Lots of SED to answer all the questions with the defaults...
sed -i 's@more ./EULA.txt@@' install.sh
sed -i 's@read YN_PD@@' install.sh
sed -i 's@read JAVADL@@' install.sh
sed -i 's@read ENTER@@' install.sh
sed -i 's@agreed=0@agreed=1@' install.sh
sed -i 's@read TARGETDIR_X@@' install.sh
sed -i 's@read BINSDIR_X@@' install.sh
sed -i 's@read MANIFESTDIR_X@@' install.sh
sed -i 's@read INITDIR_X@@' install.sh
sed -i 's@read RUNLVLDIR_X@@' install.sh
sed -i 's@read YN@@' install.sh
sed -i 's@read reply@reply=no@' install.sh
# Go ...
echo "CrashPlan in downloaded, starting installation now..."
sudo `pwd`/install.sh
echo "All done. Launch CrashPlan, login, and enjoy backup paradise"
popd &> /dev/null
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment