Need help getting Carbonite Pro deployed with Jamf Pro

KyleEricson
Valued Contributor II

Has anyone gotten a script or custom pkg to deploy Carbonite Pro?

Read My Blog: https://www.ericsontech.com
8 REPLIES 8

Pagigostra
New Contributor II

I wrote one. This will always deploy the most recent version of Carbonite. I just wrote it and it seems to be working well. They asked for a copy so if you see anything wrong please let me know.
You will need to have a .XML that has some basic information placed into /Library (LocalAutoConfig.xml).
I have the dmg place the .xml in first then run this script. The .xml will be removed.

<AutoConfig> <Silent>1</Silent> <RunActivatePostInstall>0</RunActivatePostInstall> <StartClientPostActivate>0</StartClientPostActivate> </AutoConfig>
#!/bin/bash

########################################################################################
# Created By: Sam Fike
# Date: July 1, 2020
# Exit Codes: 
#   1 - Logged into admin account
#   2 - Download Failed
#   3 - Install Failed
########################################################################################

# Locations:
DCProtect="/Applications/Carbonite Endpoint.app/Contents/DCProtect/DCProtect.app/Contents/MacOS/DCProtect"
CarbonitePackage="/Library/Carbonite.pkg"


# Getting current logged in user
DeviceUser=$(users | awk '{print $1}')

# Make sure DeviceUser doesn't equal admin

if [ "$DeviceUser" == "ADMIN_ACCOUNT" ]; then
    echo "System is logged into admin account, will not register properly"
    exit 1
fi


# Downloading the most recent version of the software
if ! /usr/bin/curl -o "$CarbonitePackage" "https://dcgeneral.blob.core.windows.net/downloads/red-us2/DCProtectInstall.pkg"; then
    echo "Was unable to download Carbonite package."
    exit 2
fi

# Installing Carbonite
if ! /usr/sbin/installer -allowUntrusted -pkg "$CarbonitePackage" -target /; then
    echo "Was unable to install Carbonite package."
    exit 3
fi

# Registering Carbonite
DeviceFullName=$(id -F "$DeviceUser")

"$DCProtect" -autoactivation -activationurl="YOUR_COMPANY_URL" -activationcode="YOUR-COMPANY-CODE" -email="$DeviceUser"@YOUR_COMPANY.com -displayName="$DeviceFullName"

rm -rf "$CarbonitePackage"

exit 0

KyleEricson
Valued Contributor II

@Pagigostra How do I find -activationurl="YOUR_COMPANY_URL" and -activationcode="YOUR-COMPANY-CODE"

Read My Blog: https://www.ericsontech.com

KyleEricson
Valued Contributor II

I think maybe this is not the right product. This is for a cloud backup software login URL here.
https://account.carbonite.com/smb/dashboard

Read My Blog: https://www.ericsontech.com

Dshannon
New Contributor

@Pagigostra For email, do you have a good way to bring in user's alias' if this does not match userid?

Pagigostra
New Contributor II

I did not test that.

nlam
New Contributor

@Pagigostra 

How do you copy the LocalAutoConfig.xml to /Library?

Pagigostra
New Contributor II

If I recall correctly, I just used a .dmg to put the .xml into that location. Sorry haven't used this product in a long time.

macguitarman
New Contributor III

How is Carbonite compared to say OneDrive, CrashPlan/Code 42 or others as backup / sync?

CrashPlan/Code 42 is klunky to say the least with it's user setup.

OneDrive with the new KFM (Known Folder Movement), and the ability to re-direct Document and Desktop folder is actually excellent. I am not sure I have seen anything as easy and transparent as OneDrive for backup / sync...

 

But what about environments that are not MS / Office 365...