Package Details: crashplan-pro 6.9.2-1

Git Clone URL: https://aur.archlinux.org/crashplan-pro.git (read-only)
Package Base: crashplan-pro
Description: An business online/offsite backup solution
Upstream URL: http://www.crashplan.com/business
Keywords: backup crashplan
Licenses: custom
Conflicts: crashplan
Submitter: glittershark
Maintainer: aaronm-cloudtek
Last Packager: aaronm-cloudtek
Votes: 23
Popularity: 0.985963
First Submitted: 2013-08-27 17:10
Last Updated: 2019-02-26 00:31

Pinned Comments

SmashedSqwurl commented on 2018-12-19 15:10

@gadicc, I added some pacman hooks to handle setting/unsetting the immutable flag:

Sets immutable flag after install/upgrade:

[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = crashplan-pro

[Action]
Description = Set immutability of Crashplan Pro upgrade directory
When = PostTransaction
Exec = /usr/bin/bash -c "rm -rf /opt/crashplan/upgrade/*; chattr +i /opt/crashplan/upgrade"`

Unsets immutable flag before upgrade/remove:

[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = crashplan-pro

[Action]
Description = Undo immutability of Crashplan Pro upgrade directory
When = PreTransaction
Exec = /usr/bin/bash -c "chattr -i /opt/crashplan/upgrade"```

Latest Comments

1 2 3 4 5 6 ... Next › Last »

gadicc commented on 2019-01-28 12:58

@SmashedSqwurl this is awesome, thank you!! sorry, had notifications turned off :/

Kevlyn commented on 2018-12-21 18:39

I had a similar issue with the /opt/crashplan/upgrade folder filling up the entire hard drive with downloads for 827. The new version is available via the Crashplan website. Modified the above PKGBUILD with the new version and I'm not seeing any issues. They just had to do this around the holidays didn't they. If you can't wait, this should work: (Only items changed are _pkgtimestamp, _pkgbuild, pkgrel, and sha256sum for download)

# Maintainer: Aaron Miller <aaronm [at] cldtk [dot] com> Contributor: Anthony Boccia <aboccia [at] boccia [dot] me> Contributor: Griffin Smith <wildgriffin [at] gmail [dot] com> Contributor: Bill Durr 
# <billyburly [at] gmail [dot] com>
pkgname=crashplan-pro
_pkgname=crashplan
pkgver=6.9.0
_pkgtimestamp=1525200006690
_pkgbuild=827
pkgrel=2
pkgdesc="An business online/offsite backup solution"
url="http://www.crashplan.com/business"
arch=('x86_64')
license=('custom')
depends=('bash' 'java-runtime-headless=8' 'alsa-lib' 'gconf' 'gtk3' 'libxss')
makedepends=('cpio')
conflicts=('crashplan')
install=crashplan-pro.install
source=(https://www.crashplanpro.com/client/installers/CrashPlanSmb_${pkgver}_${_pkgtimestamp}_${_pkgbuild}_Linux.tgz
        crashplan-pro
        crashplan-pro.service)
sha256sums=('3b6be8fbee83d25af0285b284c099efed7463fb9e7473af6c96662d8637fa5d2'
            'b306d7da0dd41341512ce80ddcfb21bff8a9bb73ab5018696e69d08b89f7f1b6'
            'fd4c80dbd2ea3dcfc9966832a599f1bb310f705f813474d1900c1867ea55155c')

build() {
  cd $srcdir/crashplan-install

  echo ""
  echo "You must review and agree to the EULA before using CrashPlan PRO."
  echo "You can do so at:"
  echo "  - https://support.code42.com/Terms_and_conditions/Legal_terms_and_conditions/CrashPlan_for_Small_Business_EULA"
  echo ""

  echo "" > install.vars
  echo "JAVACOMMON=`which java`" >> install.vars
  echo "APP_BASENAME=CrashPlan" >> install.vars
  echo "TARGETDIR=/opt/$_pkgname" >> install.vars
  echo "BINSDIR=" >> install.vars
  echo "MANIFESTDIR=/opt/$_pkgname/manifest" >> install.vars
  echo "INITDIR=" >> install.vars
  echo "RUNLVLDIR=" >> install.vars
  NOW=`date +%Y%m%d`
  echo "INSTALLDATE=$NOW" >> install.vars

  sed -imod 's|\. $TARGETDIR/bin/run\.conf|:|' scripts/CrashPlanEngine
  sed -imod "s|Exec=.*|Exec=/opt/$_pkgname/bin/CrashPlanDesktop|" scripts/CrashPlan.desktop
  sed -imod "s|Icon=.*|Icon=/opt/$_pkgname/bin/icon_app.png|" scripts/CrashPlan.desktop
  sed -imod "s|Categories=.*|Categories=System;|" scripts/CrashPlan.desktop
}

package() {
  mkdir -p $pkgdir/opt/$_pkgname
  cd $pkgdir/opt/$_pkgname

  cat $srcdir/crashplan-install/CrashPlanSmb_$pkgver.cpi | gzip -d -c - | cpio -i --no-preserve-owner

  chmod 777 log
  chmod 775 electron/crashplan

  mv app.asar electron/resources

  sed -i "s|<backupConfig>|<backupConfig>\n\t\t\t<manifestPath>/opt/$_pkgname/manifest</manifestPath>|g" conf/default.service.xml

  mkdir -p $pkgdir/usr/bin
  ln -s "/opt/$_pkgname/bin/CrashPlanDesktop" $pkgdir/usr/bin/CrashPlanDesktop

  # Fix for encoding troubles (CrashPlan ticket 178827)
  # Make sure the daemon is running using the same localization as
  # the (installing) user
  echo "" >> $srcdir/crashplan-install/scripts/run.conf
  echo "LC_ALL=$LANG" >> $srcdir/crashplan-install/scripts/run.conf

  # Prevent crashplan from restarting itself repeatedly..
  echo '#!/bin/sh' > bin/restartLinux.sh
  echo 'exit' >> bin/restartLinux.sh

  install -D -m 644 $srcdir/crashplan-install/install.vars install.vars
  install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanDesktop bin/CrashPlanDesktop
  install -D -m 644 $srcdir/crashplan-install/scripts/run.conf bin/run.conf
  install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlanEngine bin/CrashPlanEngine
  install -D -m 755 $srcdir/crashplan-install/scripts/CrashPlan.desktop $pkgdir/usr/share/applications/crashplan.desktop

  # rc.d daemon
  install -D -m 755 $srcdir/crashplan-pro $pkgdir/etc/rc.d/crashplan-pro
  # systemd unit
  install -D -m 644 $srcdir/crashplan-pro.service $pkgdir/usr/lib/systemd/system/crashplan-pro.service
}

post_install() {
  INOTIFY_WATCHES=$(cat /proc/sys/fs/inotify/max_user_watches)
  if [[ $INOTIFY_WATCHES -le 8192 ]]; then
    echo ""
    echo "Your Linux system is currently configured to watch $INOTIFY_WATCHES files in real time."
    echo "CrashPlan recommends using a larger value; see the the arch wiki for details:"
    echo "  - https://wiki.archlinux.org/index.php/CrashPlan#Real_time_protection"
    echo ""
  fi
}

jayray commented on 2018-12-20 19:09

Par for the course with code42... pkgbuild needs to be updated 820->827 and sigs updated (makepkg -g) only to wait for 6.9.1 to drop and do it all over again. Too bad the app wont update itself, or at least let us disable updates. Keep up the good work, and thank you maintainer!!

braderhart commented on 2018-12-19 22:55

I ran into an issue today while CrashPlan was trying to upgrade to 6.9.0 827 that it kept failing and filled my disk at /opt/crashplan/upgrade with a bunch of folders. Please let me know if this can be resolved in the future.

roknir commented on 2018-12-19 17:45

Their "App Downloads" page hasn't been updated with a download link for 6.9.1 yet.

SmashedSqwurl commented on 2018-12-19 15:10

@gadicc, I added some pacman hooks to handle setting/unsetting the immutable flag:

Sets immutable flag after install/upgrade:

[Trigger]
Operation = Upgrade
Operation = Install
Type = Package
Target = crashplan-pro

[Action]
Description = Set immutability of Crashplan Pro upgrade directory
When = PostTransaction
Exec = /usr/bin/bash -c "rm -rf /opt/crashplan/upgrade/*; chattr +i /opt/crashplan/upgrade"`

Unsets immutable flag before upgrade/remove:

[Trigger]
Operation = Upgrade
Operation = Remove
Type = Package
Target = crashplan-pro

[Action]
Description = Undo immutability of Crashplan Pro upgrade directory
When = PreTransaction
Exec = /usr/bin/bash -c "chattr -i /opt/crashplan/upgrade"```

blackhole commented on 2018-12-19 11:44

Version 6.9.1 is out!

blackhole commented on 2018-12-19 11:33

Today launching opt/crashplan/bin/CrashPlanDesktop I have an error about code42 cannot connect to background service. However systemctl status crashplan-pro is fine with no errors

theforeigner commented on 2018-12-09 08:53

Am I the only one getting this error when trying to start v6.9.0 as a systemd service? I didn't get this with 6.8.3.

● crashplan-pro.service - CrashPlanPRO Backup Engine
   Loaded: loaded (/usr/lib/systemd/system/crashplan-pro.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-12-09 09:51:35 CET; 26s ago
  Process: 29964 ExecStart=/opt/crashplan/bin/CrashPlanEngine start (code=exited, status=0/SUCCESS)
 Main PID: 29983 (code=exited, status=1/FAILURE)

dec 09 09:51:35 x systemd[1]: crashplan-pro.service: Start request repeated too quickly.
dec 09 09:51:35 x systemd[1]: crashplan-pro.service: Failed with result 'exit-code'.
dec 09 09:51:35 x systemd[1]: Failed to start CrashPlanPRO Backup Engine.

roknir commented on 2018-12-07 05:22

It looks like there was a 6.9.0 released. Download link: https://www.crashplanpro.com/client/installers/CrashPlanSmb_6.9.0_1525200006690_820_Linux.tgz