Package Details: veeamsnap 6.0.2.1168-1

Git Clone URL: https://aur.archlinux.org/veeamsnap.git (read-only, click to copy)
Package Base: veeamsnap
Description: Veeam Agent for Linux kernel modules (DKMS)
Upstream URL: https://repository.veeam.com/backup/linux/agent
Keywords: backup dkms veeam veeamsnap
Licenses: GPLv2
Conflicts: veeamsnap
Submitter: CodeImp
Maintainer: theokonos
Last Packager: theokonos
Votes: 7
Popularity: 0.000012
First Submitted: 2019-01-25 08:49 (UTC)
Last Updated: 2023-05-27 13:10 (UTC)

Pinned Comments

theokonos commented on 2021-12-26 20:54 (UTC)

Good news everyone: As of release 5.0.2, veeamsnap supports Linux kernels up to and including 5.16. The AUR build has been updated to use the new 5.0.2 source and I have tested on my own machine on 5.10 LTS. Snapshotting works as it should.

Thanks!

Latest Comments

1 2 Next › Last »

theokonos commented on 2021-12-26 20:54 (UTC)

Good news everyone: As of release 5.0.2, veeamsnap supports Linux kernels up to and including 5.16. The AUR build has been updated to use the new 5.0.2 source and I have tested on my own machine on 5.10 LTS. Snapshotting works as it should.

Thanks!

theokonos commented on 2021-10-08 14:20 (UTC)

Updated to 5.0.1.4493. Please cleanbuild to avoid sha256 checksum issues.

Note, veeam is working on experimental support for kernels above 5.8 and this is supposedly working -- however this package will remain on stable release for the time being.

If anyone is interested in packaging the experimental build and making a new AUR listing, please feel free: https://github.com/veeam/veeamsnap/issues/10

theokonos commented on 2021-04-20 04:26 (UTC)

Hey all, I'm taking over maintenance of this AUR package and the primary veeam one since they went stale enough to get orphaned.

This update brings veeam and veeamsnap to 5.0, which includes changes to how the job information databases are formatted (moved from SQLite to SQL) but is backward compatible with existing installations.

Cheers!

dekart811 commented on 2020-10-03 17:12 (UTC) (edited on 2020-10-03 17:17 (UTC) by dekart811)

As stated here for the time being veeamsnap does not work with kernel 5.8! Do not ask me for a fix, there's nothing I can do about that! If you want to blame someone for that blame Veeam directly not me.

terrigan commented on 2020-10-03 15:35 (UTC) (edited on 2020-10-03 15:37 (UTC) by terrigan)

I've gotten Veeamsnap to download with a modified BUILDFILE but it fails to build on the 5.8 kernel.


# Maintainer: dekart811
# Updated by: RoderickVM (June 21 2020)
# Updates: 1) Patch file name, 2) SHA256SUM for the patch filename

_pkgbase=veeamsnap
pkgname=veeamsnap
pkgver=4.0.1.2365
pkgrel=1
pkgdesc="Veeam Agent for Linux kernel modules (DKMS)"
arch=('i686' 'x86_64')
url="http://repository.veeam.com/backup/linux/agent"
license=('GPLv2')
depends=('dkms')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${url}/rpm/el/7/x86_64/veeamsnap-${pkgver}-1.noarch.rpm"
        'dkms.conf')
sha256sums=('439fa156a9166125b43d4a4395ae720571a43d95ea6987dc96f8b70f618ad1c5'
            '7d2a83f28b7c41797fadf06f29ab124ae63d662f2dba4e81e1eb4d1ef15bee7c')

prepare() {
  cd "${srcdir}/usr/src/${pkgname}-${pkgver}"
  chmod 644 *
  # Convert line endings to LF to prevent patch from failing
  sed -i -e 's/\r$//g' cbt_storage.c
  sed -i -e 's/\r$//g' cbt_storage.h
}

package() {
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${srcdir}/usr/src/${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

  GNU nano 5.2                                                                               make.log                                                                                         
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_util.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_direct.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_redirect.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_deferred.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/defer_io.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_storage.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_map.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_notify.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_params.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_persistent.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ext4_check.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/cbt_checkfs.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracker.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracker_queue.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapimage.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapdata_collect.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_mem.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_file.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_multidev.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_pool.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/blk_descr_array.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_device.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_file.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_multidev.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapshot.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/tracking.o
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ctrl_fops.o
/var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c: In function ‘snapstore_mem_get_block’:
/var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c:76:23: error: too many arguments to function ‘__vmalloc’
   76 |     buffer_el->buff = __vmalloc( SNAPSTORE_BLK_SIZE * SECTOR_SIZE, GFP_NOIO, PAGE_KERNEL );
      |                       ^~~~~~~~~
In file included from ./include/asm-generic/io.h:911,
                 from ./arch/x86/include/asm/io.h:375,
                 from ./include/linux/scatterlist.h:9,
                 from ./include/linux/blkdev.h:28,
                 from /var/lib/dkms/veeamsnap/4.0.1.2365/build/stdafx.h:15,
                 from /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.c:1:
./include/linux/vmalloc.h:111:14: note: declared here
  111 | extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
      |              ^~~~~~~~~
make[1]: *** [scripts/Makefile.build:280: /var/lib/dkms/veeamsnap/4.0.1.2365/build/snapstore_mem.o] Error 1
make[1]: *** Waiting for unfinished jobs....
  CC [M]  /var/lib/dkms/veeamsnap/4.0.1.2365/build/ctrl_pipe.o
make: *** [Makefile:1752: /var/lib/dkms/veeamsnap/4.0.1.2365/build] Error 2
make: Leaving directory '/usr/lib/modules/5.8.11-1-MANJARO/build'

timemaster commented on 2020-08-08 01:35 (UTC) (edited on 2020-08-08 01:44 (UTC) by timemaster)

It seems the sha256sum validation of the patch file fails. One could refactor this but it's not useful : there is a new version available 4.0.1.2365 both in the official git page in the main branch as well as a rpm on the veeam website. It does not needs the patch anymore to work on kernel 5.7. I have flagged this package out of date and modified locally the pkg to work with the newer and remove the patch and everything working fine.

RoderickVM commented on 2020-06-23 04:35 (UTC) (edited on 2020-06-23 04:38 (UTC) by RoderickVM)

@dekart811 The following renders the pinned comment ineffective. In order to make the veaamsnap module install on kernels 5.7.x, can you please update de PKGBUILD with the following? Confirmed successful installation on both 5.7.4 "standard" and zen kernels. Tested veeam on 5.7.4-zen1-1-zen kernel and worked fine.

# Maintainer: dekart811
# Updated by: RoderickVM (June 21 2020)
# Updates: 1) Patch file name, 2) SHA256SUM for the patch filename

_pkgbase=veeamsnap
pkgname=veeamsnap
pkgver=4.0.0.1961
pkgrel=1
pkgdesc="Veeam Agent for Linux kernel modules (DKMS)"
arch=('i686' 'x86_64')
url="http://repository.veeam.com/backup/linux/agent"
license=('GPLv2')
depends=('dkms')
conflicts=("${_pkgbase}")
install=${pkgname}.install
source=("${url}/rpm/el/7/x86_64/veeamsnap-${pkgver}-1.noarch.rpm"
        'fix-compilation-on-linux-5.7.patch::https://github.com/veeam/veeamsnap/pull/5.patch'
        'dkms.conf')
sha256sums=('40857406899712576e233dd76e54fa5fb9e73e45f6c616d5a9facdb4bcea6d8c'
            '492ae08fe620184d015574da9e0b1b3fab695318c1d81dd6b7a885ac0703281e'
            '7d2a83f28b7c41797fadf06f29ab124ae63d662f2dba4e81e1eb4d1ef15bee7c')

prepare() {
  cd "${srcdir}/usr/src/${pkgname}-${pkgver}"
  chmod 644 *
  # Convert line endings to LF to prevent patch from failing
  sed -i -e 's/\r$//g' cbt_storage.c
  sed -i -e 's/\r$//g' cbt_storage.h
  patch -l -p2 -i "$srcdir/fix-compilation-on-linux-5.7.patch"
}

package() {
  # Copy dkms.conf
  install -Dm644 dkms.conf "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Set name and version
  sed -e "s/@_PKGBASE@/${_pkgbase}/" \
      -e "s/@PKGVER@/${pkgver}/" \
      -i "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/dkms.conf

  # Copy sources (including Makefile)
  cp -r ${srcdir}/usr/src/${_pkgbase}-${pkgver}/* "${pkgdir}"/usr/src/${_pkgbase}-${pkgver}/
}

timemaster commented on 2020-06-06 22:00 (UTC)

The kernel module would not build under the 5.6.15-arch1-1 kernel. You can find some info in this address "https://forums.veeam.com/veeam-agents-for-linux-unix-f41/kernel-5-6-7-veeamsnap-compile-errors-t66615.html"

I suggest a patch file (the sed from rokko74) for the packages or doing it yourself.

After this patch and a install, my veem backup was succesful.