Migrate all settings from Windows to FreeNAS or any other

Hi there,

if I want to change to another platform, for example from Windows to Linux or FreeNAS ( http://forums.freenas.org/threads/urbackup-and-freenas-8-3-backup-and-windows-baremetal-restore-fantastic-solution.9823/ ) - is there a possibility to simle migrate all settings of server (of course I have to change some after, for example the storage paths) and all clients, especially the non default settings (what to backup additionally on that client or anything like that)? What do I have to copy where and what services do I have to stop while copying or restart after to have that all migrated?

Best regards, Jochen

PS: can anyone confirm this tutorial for FreeNAS is working with the actual new version of FreeNAS? Or are there any problems? I actually only read of version 8.x in every comment to this thread…

For the settings you’d need the backup_server_settings.db and the clients table in backup_server.db .

Maybe the best way would be to copy both files and then to remove the backups from backup_server.db via the sqlite3 command line interface:

sqlite3 backup_server.db  

DELETE FROM files;
DELETE FROM files_del;
DELETE FROM files_new;
DELETE FROM backups;
DELETE FROM backup_images;
DELETE FROM assoc_images;

Recalculate statistics afterwards.

Don’t use ZFSOnLinux – I had massive problems with UrBackup (rsync like) workloads with 0.6.1. I’ve just installed 0.6.2 – maybe that’ll be more stable.

Hi Uroni,

i recently was trying to migrate but installation as tutored in the link does not work on actual FreeNAS with actual UrBackup download.

[root@…] ~/urbackup-server-1.3.0.327# ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… ./install-sh -c -d
checking for gawk… no
checking for mawk… no
checking for nawk… nawk
checking whether make sets $(MAKE)… yes
checking for g++… g++
checking whether the C++ compiler works… no
configure: error: in /root/urbackup-server-1.3.0.327': configure: error: C++ compiler cannot create executables See config.log’ for more details

Log:
[root@ba-backup01] ~/urbackup-server-1.3.0.327# cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by urbackup-server configure 1.3.0.327, which was
generated by GNU Autoconf 2.68. Invocation command line was

$ ./configure

---------

Platform.

---------

hostname = ba-backup01.spsdocsba.local
uname -m = i386
uname -r = 9.1-STABLE
uname -s = FreeBSD
uname -v = FreeBSD 9.1-STABLE #0 r+16f6355: Tue Aug 27 04:05:43 PDT 2013 roo t@build.ixsystems.com:/tank/home/jkh/src/freenas/os-base/i386/i386.i386/tank/hom e/jkh/src/freenas/FreeBSD/src/sys/FREENAS.i386

/usr/bin/uname -p = i386
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /root/bin
PATH: /usr/local/fusion-io

-----------

Core tests.

-----------

configure:2313: checking for a BSD-compatible install
configure:2381: result: /usr/bin/install -c
configure:2392: checking whether build environment is sane
configure:2442: result: yes
configure:2583: checking for a thread-safe mkdir -p
configure:2622: result: ./install-sh -c -d
configure:2635: checking for gawk
configure:2665: result: no
configure:2635: checking for mawk
configure:2665: result: no
configure:2635: checking for nawk
configure:2651: found /usr/bin/nawk
configure:2662: result: nawk
configure:2673: checking whether make sets $(MAKE)
configure:2695: result: yes
configure:2865: checking for g++
configure:2881: found /usr/bin/g++
configure:2892: result: g++
configure:2919: checking for C++ compiler version
configure:2928: g++ --version >&5
g++ (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright © 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2939: $? = 0
configure:2928: g++ -v >&5
Using built-in specs.
Target: i386-undermydesk-freebsd
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
configure:2939: $? = 0
configure:2928: g++ -V >&5
g++: ‘-V’ option must have argument
configure:2939: $? = 1
configure:2928: g++ -qversion >&5
g++: unrecognized option ‘-qversion’
g++: No input files specified
configure:2939: $? = 1
configure:2959: checking whether the C++ compiler works
configure:2981: g++ conftest.cpp >&5
/usr/bin/ld: cannot find -lgcc
configure:2985: $? = 1
configure:3023: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME “urbackup-server”
| #define PACKAGE_TARNAME “urbackup-server”
| #define PACKAGE_VERSION “1.3.0.327”
| #define PACKAGE_STRING “urbackup-server 1.3.0.327”
| #define PACKAGE_BUGREPORT “martin@urbackup.org
| #define PACKAGE_URL “”
| #define PACKAGE “urbackup-server”
| #define VERSION “1.3.0.327”
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3028: error: in /root/urbackup-server-1.3.0.327': configure:3031: error: C++ compiler cannot create executables See config.log’ for more details

----------------

Cache variables.

----------------

ac_cv_env_CCC_set=’’
ac_cv_env_CCC_value=’’
ac_cv_env_CC_set=’’
ac_cv_env_CC_value=’’
ac_cv_env_CFLAGS_set=’’
ac_cv_env_CFLAGS_value=’’
ac_cv_env_CPPFLAGS_set=’’
ac_cv_env_CPPFLAGS_value=’’
ac_cv_env_CPP_set=’’
ac_cv_env_CPP_value=’’
ac_cv_env_CXXFLAGS_set=’’
ac_cv_env_CXXFLAGS_value=’’
ac_cv_env_CXX_set=’’
ac_cv_env_CXX_value=’’
ac_cv_env_LDFLAGS_set=’’
ac_cv_env_LDFLAGS_value=’’
ac_cv_env_LIBS_set=’’
ac_cv_env_LIBS_value=’’
ac_cv_env_build_alias_set=’’
ac_cv_env_build_alias_value=’’
ac_cv_env_host_alias_set=’’
ac_cv_env_host_alias_value=’’
ac_cv_env_target_alias_set=’’
ac_cv_env_target_alias_value=’’
ac_cv_path_install=’/usr/bin/install -c’
ac_cv_prog_AWK=nawk
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_make_make_set=yes

-----------------

Output variables.

-----------------

ACLOCAL=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run aclocal-1.11’
AMDEPBACKSLASH=’’
AMDEP_FALSE=’’
AMDEP_TRUE=’’
AMTAR=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run tar’
AUTOCONF=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run autoconf’
AUTOHEADER=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run autoheader’
AUTOMAKE=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run automake-1.11’
AWK=‘nawk’
CC=’’
CCDEPMODE=’’
CFLAGS=’’
CPP=’’
CPPFLAGS=’’
CXX=‘g++’
CXXDEPMODE=’’
CXXFLAGS=’’
CYGPATH_W=‘echo’
DEFS=’’
DEPDIR=’’
DLOPEN_LIBS=’’
ECHO_C=’’
ECHO_N=’-n’
ECHO_T=’’
EGREP=’’
EXEEXT=’’
GREP=’’
INSTALL_DATA=’${INSTALL} -m 644’
INSTALL_INITD_FALSE=’’
INSTALL_INITD_TRUE=’’
INSTALL_PROGRAM=’${INSTALL}’
INSTALL_SCRIPT=’${INSTALL}’
INSTALL_STRIP_PROGRAM=’$(install_sh) -c -s’
LDFLAGS=’’
LIBOBJS=’’
LIBS=’’
LTLIBOBJS=’’
MAKEINFO=’${SHELL} /root/urbackup-server-1.3.0.327/missing --run makeinfo’
MKDIR_P=’./install-sh -c -d’
OBJEXT=’’
PACKAGE=‘urbackup-server’
PACKAGE_BUGREPORT=‘martin@urbackup.org’
PACKAGE_NAME=‘urbackup-server’
PACKAGE_STRING=‘urbackup-server 1.3.0.327’
PACKAGE_TARNAME=‘urbackup-server’
PACKAGE_URL=’’
PACKAGE_VERSION=‘1.3.0.327’
PACKAGING_FALSE=’’
PACKAGING_TRUE=’’
PATH_SEPARATOR=’:’
PTHREAD_CC=’’
PTHREAD_CFLAGS=’’
PTHREAD_LIBS=’’
P_SUBDIRS=’’
SET_MAKE=’’
SHELL=’/bin/sh’
STRIP=’’
VERSION=‘1.3.0.327’
ac_ct_CC=’’
ac_ct_CXX=‘g++’
am__EXEEXT_FALSE=’’
am__EXEEXT_TRUE=’’
am__fastdepCC_FALSE=’’
am__fastdepCC_TRUE=’’
am__fastdepCXX_FALSE=’’
am__fastdepCXX_TRUE=’’
am__include=’’
am__isrc=’’
am__leading_dot=’.’
am__quote=’’
am__tar=’${AMTAR} chof - “$$tardir”’
am__untar=’${AMTAR} xf -’
ax_pthread_config=’’
bindir=’${exec_prefix}/bin’
build=’’
build_alias=’’
build_cpu=’’
build_os=’’
build_vendor=’’
datadir=’${datarootdir}’
datarootdir=’${prefix}/share’
docdir=’${datarootdir}/doc/${PACKAGE_TARNAME}’
dvidir=’${docdir}’
exec_prefix=‘NONE’
host=’’
host_alias=’’
host_cpu=’’
host_os=’’
host_vendor=’’
htmldir=’${docdir}’
includedir=’${prefix}/include’
infodir=’${datarootdir}/info’
install_sh=’${SHELL} /root/urbackup-server-1.3.0.327/install-sh’
libdir=’${exec_prefix}/lib’
libexecdir=’${exec_prefix}/libexec’
localedir=’${datarootdir}/locale’
localstatedir=’${prefix}/var’
mandir=’${datarootdir}/man’
mkdir_p=’$(top_builddir)/./install-sh -c -d’
oldincludedir=’/usr/include’
pdfdir=’${docdir}’
prefix=‘NONE’
program_transform_name=‘s,x,x,’
psdir=’${docdir}’
sbindir=’${exec_prefix}/sbin’
sharedstatedir=’${prefix}/com’
subdirs=’’
sysconfdir=’${prefix}/etc’
target_alias=’’

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME “urbackup-server”
#define PACKAGE_TARNAME “urbackup-server”
#define PACKAGE_VERSION “1.3.0.327”
#define PACKAGE_STRING “urbackup-server 1.3.0.327”
#define PACKAGE_BUGREPORT “martin@urbackup.org
#define PACKAGE_URL “”
#define PACKAGE “urbackup-server”
#define VERSION “1.3.0.327”

configure: exit 77

Any idea why this is not working?

No idea, something is wrong with the compiler (g++). Maybe update/install a different version (via pkg_add it seems).