Dar: encrypt backup

From FVue
Jump to: navigation, search

Problem

I want to encrypt my dar backup, but dar replies:

Aborting program. The requested operation needs a feature that has been disabled at
compilation time: blowfish strong encryption support

Solution

  • Install package using YaST: openssl-devel
  • Download, configure, make, checkinstall dar-2.3.0

Journal

20060520

Added http://download.opensuse.org/distribution/SL-10.0-OSS/inst-source/ as YaST installation source. Now I can select from within YaST 'dar' and select 'Install sources (RPMS)'.

Directory /usr/src/packages/SOURCES now contains:

dar.diff
dar-2.2.2.tar.bz2

Output of dar -V:

dar version 2.2.2, Copyright (C) 2002-2052 Denis Corbin
  Long options support       : YES

Using libdar 3.0.2 built with compilation time options:
  Libz compression (gzip)    : YES
  Libbz2 compression (bzip2) : YES
  Strong encryption          : NO
  Extended Attributes support: NO
  Large files support (> 2GB): YES
  ext2fs NODUMP flag support : YES
  Special allocation scheme  : YES
  Integer size used          : unlimited
  Thread safe support        : YES

compiled the Sep  9 2005 with GNUC version 4.0.2 20050901 (prerelease) (SUSE Linux)
dar is part of the Disk ARchive suite (Release 2.2.2)
dar comes with ABSOLUTELY NO WARRANTY; for details
type `dar -W'. This is free software, and you are welcome
to redistribute it under certain conditions; type `dar -L | more'
for details.

Installed rpm libxcrypt.

20060521

From ./configure I can see dar looks for openssl/blowfish.h, so I installed openssl-devel.

./configure says:

checking openssl/blowfish.h usability... yes checking openssl/blowfish.h presence... yes

dar and libdar have been successfully configured with the following parameters:

  LIBDAR parameters:
   Zlib compression (gzip)    : NO
   Libbz2 compression (bzip2) : YES
   Strong encryption support  : YES
   Extended Attributes support: NO
   Large files support (> 2GB): YES
   ext2fs NODUMP flag support : NO
   Special allocation scheme  : YES
   Integer size used          : infinint
   Thread safe support        : YES

  DAR SUITE command line programs:
   Long options available : YES
   Building examples      : NO
   Building dar_static    : YES
   using upx at install   : YES
   building documentation : NO

Uninstalled existing dar via YaST.

./configure
make
su -
checkinstall
rpm -i 

Now dar -V shows – still no encryption?:

dar version 2.2.2, Copyright (C) 2002-2052 Denis Corbin
  Long options support       : YES

Using libdar 3.0.2 built with compilation time options:
  Libz compression (gzip)    : YES
  Libbz2 compression (bzip2) : YES
  Strong encryption          : NO
  Extended Attributes support: NO
  Large files support (> 2GB): YES
  ext2fs NODUMP flag support : YES
  Special allocation scheme  : YES
  Integer size used          : unlimited
  Thread safe support        : YES

compiled the May 21 2006 with GNUC version 4.0.2 20050901 (prerelease) (SUSE Linux)
dar is part of the Disk ARchive suite (Release 2.2.2)
dar comes with ABSOLUTELY NO WARRANTY; for details
type `dar -W'. This is free software, and you are welcome
to redistribute it under certain conditions; type `dar -L | more'
for details.

Even though I've compiled libdar today (2006-05-21), libdar.so hasn't been modified:

/usr/src/packages/SOURCES # ls -l /usr/lib/libdar.*
-rw-r--r--  1 root root 2031184 Sep  9  2005 /usr/lib/libdar.a
-rw-r--r--  1 root root     839 Sep  9  2005 /usr/lib/libdar.la
lrwxrwxrwx  1 root root      15 May 21 18:07 /usr/lib/libdar.so -> libdar.so.3.0.2*
lrwxrwxrwx  1 root root      15 Feb 21 21:07 /usr/lib/libdar.so.3 -> libdar.so.3.0.2*
-rwxr-xr-x  1 root root 1017728 Sep  9  2005 /usr/lib/libdar.so.3.0.2*

Downloaded dar-2.3.0 from http://sourceforge.net/project/showfiles.php?group_id=65612

Configure now says:

dar and libdar have been successfully configured with the following parameters:

  LIBDAR parameters:
   Zlib compression (gzip)    : NO
   Libbz2 compression (bzip2) : YES
   Strong encryption support  : YES
   Extended Attributes support: NO
   Large files support (> 2GB): YES
   ext2fs NODUMP flag support : NO
   Special allocation scheme  : YES
   Integer size used          : infinint
   Thread safe support        : YES

  DAR SUITE command line programs:
   Long options available : YES
   Building examples      : NO
   Building dar_static    : YES
   using upx at install   : YES
   building documentation : NO
  • Downloaded dar-2.3.0
  • Uninstalled dar and libdar
  • Compile, make, checkinstall

Now dar -V gives me error:

dar: error while loading shared libraries: libdar.so.4: cannot open shared object file: No such file or directory

Found answer at gmane.comp.sysutils.backup.dar.support:

Your system has problem with shared libraries. Either use static version of dar ( --disable-shared given to ./configure when building dar) or read documentation about ldconfig, or use LD_LIBRARY_PATH environment variable.

I ran ldconfig.

Comments

blog comments powered by Disqus