⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 install

📁 一套客户/服务器模式的备份系统代码,跨平台,支持linux,AIX, IRIX, FreeBSD, Digital Unix (OSF1), Solaris and HP-UX.
💻
📖 第 1 页 / 共 2 页
字号:
Installation of AF's backup system==================================Super easy installation for nervous people------------------------------------------Run my very cool interactive installation script "Install"and answer the questions properly. This tool has sufficientconfiguration capabilities for the vast majority of installations.Afterwards you may run the following programs toconfigure the backup system ($BASEDIR is theinstallation directory for each $BASEDIR theconfiguration file may be supplied as an argument):$BASEDIR/server/bin/serverconfig    to configure the server side$BASEDIR/client/bin/clientconfig    to configure the client sideIf you are running X, you may use the following instead:$BASEDIR/server/bin/xserverconfig    to configure the server side$BASEDIR/client/bin/xclientconfig    to configure the client side(For the latter two Tcl/Tk must be installed and some version of the "wish" program must be in the command search path)Detailed installation procedure-------------------------------There are three types of hosts that can be configured.A host may be of one or more of the following three types.I will define them as follows:backup server         a host with a streamer device connected,                      that all backup data is written tobackup client         a host that desires to backup it's data                      to a serverremote start client   a host that can start a backup on another                      host by issuing a request to that host                      who in turn is basically a backup client.                      This is used to simplify the administration                      by starting backups on several clients                      from one central point.What you have to do depends on the type of host that you want to configure. For a backup server, install and configurethe server side (see below). For a client, install and configurethe client side (see below). For a remote start client, install theclient side (see below). Special configuration should not be necessary.For a backup client that offers the possibility to be triggeredremotely (by a remote start client), also install the server side and the remote start server side (see below). Furtherconfiguration is not necessary. A host like this requires the installation of all three basic functionalitiesdescribed above.Client Side-----------1) If you want DES encryption (128 Bit key) for authenticating   the client to the server get Eric Young's DES-library or the   openssl software. They be obtained from many web sites, e.g.   www.openssl.org. If you can't find it, ask google for them.   The current version of libdes by the time of this writing is   4.04b, openssl is 0.96c.   By default the libdes is expected in a directory named 'libdes'   parallel to the unpacked afbackup sources directory. An ls in   the parent directory should show at least the two subdirectories   afbackup-X.Y and libdes. The DES-library can be easily compiled:   A simple make in this directory should suffice in most cases.   For openssl run the Configure script and check the offered list   of operating system version - compiler combinations and supply   the most appropriate one. The option -prefix tells the script   about the desired installation directory Then run make and   make install.   If openssl is used, the settings must be made as follows (assumed   /OPENSSL is the base installation directory): des.h for the name   of the header file, /OPENSSL/include/openssl as the path being   searched for includes, -lcrypto for the library to be linked and   /OPENSSL/lib for the library path. Warnings about incompatible   pointer types can be ignored.2) Build the distribution.   For Solaris, it is strongly recommended to use gcc. Sun compilers   break autoconf checks for header availability, so first set the   environment variable CC to gcc. Now enter (on HP-UX preceded   with ksh ):        ./configure [ -prefix=/my/desired/install/path ]   As usual, stuff typed in square brackets is optional.   Default installation path is /usr/local. To this install path   /backup is always appended as well as /client for the client   side. For the pre-2.11.5-defaults, type /usr as install   path. For Debian the default changed to /usr/local, but in   these cases, where /usr/local is NOT local and used by several   machines via NFS, I'd recommend to use the old default /usr or   /opt or whatever is appropriate and *really* local.   If DES-encryption should be performed, use the following   options as needed:        --with-des [ --with-des-header=<des-header-file> ]                   [ --with-des-include=<path-to-des-header> ]                   [ --with-des-libdir=<path-to-des-lib> ]                   [ --with-des-ldflag=<des-lib-specifier> ]        Defaults:               <des-header-file>      des.h               <path-to-des-header>   ../libdes               <path-to-des-lib>      <path-to-des-header>               <des-lib-specifier>    -ldes   If built-in compression should be performed, locate the zlib.h   header file and the library libz.a (or libz.so...) on your   system (or install version >= 1.0.2 if not available), then   use the following options as needed:        --with-zlib [ --with-zlib-include=<path-to-zlib.h> ]                    [ --with-zlib-libdir=<path-to-libz.*> ]        Defaults:               <path-to-zlib.h>   /usr/local/include               <path-to-zlib.*>   /usr/local/lib   Changes in the encryption routines were necessary due to a bug   in all libdes versions. Thus the newly built programs are unable   to authenticate successfully with existing installations.   Furthermore if the __descrpt program was used to encrypt files,   they cannot be decrypted with this program any longer.   Nonetheless it is possible to build the package using the buggy   function, so backward compatibility for existing installations   is provided. If the buggy function should be used, the following   line must be appended to the file des_aux.h:    #define LIBDESBUG_COMPATIBILITY 1   Then type:        make client   Warnings can usually be ignored.   You will be asked to enter a key for authentication. This   key is needed so that no one other than a real backup client    can connect to the fbackup service. This is to prevent    unauthorized people or programs from getting access    to the backup media. Note that the stuff you enter is   somewhat converted and used for processing some bytes    sent from the server to the client. Both sides do some    calculations and then the client sends back the result    and the server decides whether the client may take control.    After the successful installation you   should do a "make distclean", so the file with the key is   removed and cannot be used by hackers to rebuild the stuff.   You may decide to have the sources and programs read    protected during installation for more security.   More detailed installation options to pass to configure:   (to be used like assignments, e.g. -prefix=/desired/path,    every --with-stuff has it's --without-counterpart)   option name           default                   comment   -prefix               /usr/local/afbackup       the base for all   --with-prefixext      /backup                   appended to $prefix   --with-serverdir      $prefix/$prefixext/server serverside base   --with-serverbindir   $serverdir/bin            for executables   --with-serverlibdir   $serverdir/lib            for libraries   --with-servervardir   $serverdir/var            varying stuff   --with-serverconfdir  $serverdir/etc            configuration   --with-servermandir   $serverdir/man            manual pages   --with-serverlogdir   $serverdir/var            for logfiles   --with-serverconf     backup.conf               config filename   --with-clientdir      $prefix/$prefixext/client clientside base   --with-clientbindir   $clientdir/bin            for executables   --with-clientlibdir   $clientdir/lib            for libraries   --with-clientvardir   $clientdir/var            varying stuff   --with-clientconfdir  $clientdir/etc            configuration   --with-clientmandir   $clientdir/man            manual pages   --with-clientlogdir   $clientdir/var            for logfiles   --with-rexecdir       $prefix/$prefixext/rexec  remotely executables   --with-clientconf     backup.conf               config filename   --with-commondir      $prefix/$prefixext/common client and server   --with-commondatadir  $commondir/share          architecture indep   --with-commonshlibdir $commondatadir/lib        arch indep code   --with-tmpdir         /tmp                      alternative tmp dir   --without-strip       no (i.e. perform strip)   don't strip binaries   options without arguments   --disable-threads     --enable-threads          don't use threads   Minimum to affect all defaults is to set -prefix and possibly   -{with|without}-prefixext. The next more detailed step is to   set --with-serverdir, --with-clientdir, --with-rexecdir, and   --with-commondir .   More detailed installation options to pass to make:   2 variables can be set to modify compilation, so the programs   will be built with e.g. lower optimization or debuggable. To   turn on debugging ability pass DEBUG=-g (or whatever argument   the compiler needs). For adjusting the optimization pass an   argument like this to make: OPTIMIZE=-O3 . If several options   should be passed to the compiler, use quotes, e.g.   OPTIMIZE="-O1 -finline-functions"3) Install the files and programs   Just enter:     make install.client4) Configure the client side   To do this run the program    $BASEDIR/client/bin/clientconfig   where BASEDIR is the install directory chosen with configure.   Everything should be self-explaining (help-command available)   I suggest to backup as first file one containing the name of   the client machine. On most distributions of Linux, the file    /etc/HOSTNAME could be used for this purpose.5) If you want the logfiles to reside in the /var-directory,   move the $BASEDIR/client/var diretory to a subdiretory of   /var with a name of your choice. I'd suggest    /var/logs/backup/client .   Then make a symbolic link in $BASEDIR/client with the   name var, that points to the newly created diretory under   /var. e.g. enter:    rmdir $BASEDIR/client/var    mkdir -p /var/logs/backup/client    ln -s $BASEDIR/client/var /var/logs/backup/client6) If ordinary users should be able to restore files without   administrator help the restore-utility must be installed as   executable for all users and setuid root. This can be achieved   entering:   make install.userrestore   The following steps are preformed:   rm -f $BASEDIR/client/bin/afrestore $BASEDIR/client/bin/afbackout   cp $BASEDIR/client/bin/full_backup $BASEDIR/client/bin/afrestore   ln $BASEDIR/client/bin/afrestore $BASEDIR/client/bin/afbackout   chmod 4755 $BASEDIR/client/bin/afrestore   If they should be able to use the xafrestore GUI frontend, this   program should be installed executable for normal users, setuid-Bit   is unnecessary as this program is only a frontend for the afrestore   program (also done by make install.userrestore):   chmod 755 $BASEDIR/client/bin/xafrestore   It might be desirable, that normal users can run update_indexes.   Then it may also be installed setuid root like afrestore. If   afrestore is already setuid root, it is sufficient to (done by

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -