Installation/Installing Amanda Source: Difference between revisions

From wiki.zmanda.com
Jump to navigation Jump to search
(copied from parent page)
 
(updates, remove refs to config.site, which configure.in currently ignores)
Line 1: Line 1:
If you have different platforms, you only need to install the whole Amanda package on the tape server host (the one with tape drive). On the backup client hosts (the ones you are going to dump), you only need to compile some of the Amanda programs (See Backup client configuration).
If you have different platforms, you only need to install the whole Amanda package on the tape server host (the one with tape drive). On the backup client hosts (the ones you are going to dump), you only need to compile some of the Amanda programs (See Backup client configuration).


=== Building Amanda source ===
= Building Amanda from Source =


You need to generate the "configure" script, by running the "./autogen" script in the top level directory of the amanda sources. When you download a source package or a snapshot, the configure script is already generated  
When you download a source package or a snapshot, the configure script is already generated, and you can compile on a system without the autotools installed.  This is recommended for everyone who is not developing Amanda.
(and you can compile on a system without the autoconf tools installed).


=== Compile time parameters ===
If yu need to generate the "configure" script, run the "./autogen" script in the top level directory of the Amanda sources.


Read about the different configuration options available for building and running Amanda. To see the options, do both:
== Compile time parameters ==


# Run ./configure --help to see the available options that configure takes.
Read about the different configuration options available for building and running Amanda. To see the options, run
# Read the file example/config.site which gives longer descriptions to the same options.  
./configure --help
to see the available options that configure takes.


'''Configure command line options'''
=== Configure command line options ===


* Choose which user and group you will run the dumps under. Common choices for user are `bin' or another user specifically created for Amanda, such as `amanda'; common choices for group are `operator' or `disk'. If you do not specify --with-user=<username> and --with-group=<groupname>, configure will abort.  
* Choose which user and group you will run the dumps under. Common choices for user are `bin' or another user specifically created for Amanda, such as `amanda'; common choices for group are `operator' or `disk'. If you do not specify --with-user=<username> and --with-group=<groupname>, configure will abort.  


* Choose the default name for your configuration, such as `csd' or `DailySet1'). This name is used by the Amanda commands to choose one of multiple possible configurations. You may specify it using the --with-config=<confgname>.
* Choose the default name for your configuration, such as `csd' or `DailySet1). This name is used by the Amanda commands to choose one of multiple possible configurations. You may specify it using the --with-config=<confgname>.


* If you want to change the compiler flags, you can do so like this:
./configure CFLAGS="-O3 -Wall" --other-options...
* Decide where Amanda will live. You need to choose a root directory for Amanda. Let this root directory be called $prefix. Unless you change the default behavior with the appropriate command line options, Amanda will install itself as. Listed below you find the appropriate configure-option for each directory to change the location of this part of Amanda.
* Decide where Amanda will live. You need to choose a root directory for Amanda. Let this root directory be called $prefix. Unless you change the default behavior with the appropriate command line options, Amanda will install itself as. Listed below you find the appropriate configure-option for each directory to change the location of this part of Amanda.


Line 31: Line 33:


* Decide if you are compiling Amanda on a server only or a client only platform. If you have a particular operating system that will only be a Amanda client and will never run as the master tape host, then add the --without-server option to configure. In the unlikely case that you have a particular operating system that will serve as the tape host and you do not wish to back up any machines that run this operating system, add the --without-client option to the configure options.  
* Decide if you are compiling Amanda on a server only or a client only platform. If you have a particular operating system that will only be a Amanda client and will never run as the master tape host, then add the --without-server option to configure. In the unlikely case that you have a particular operating system that will serve as the tape host and you do not wish to back up any machines that run this operating system, add the --without-client option to the configure options.  


Now configure Amanda. There are two ways of doing this. If you are running Amanda on a single OS, then probably the first method works better for you. If you need to support multiple platforms, then the second method will work better.
Now configure Amanda. There are two ways of doing this. If you are running Amanda on a single OS, then probably the first method works better for you. If you need to support multiple platforms, then the second method will work better.


# Run configure as non-root-user with the appropriate command line options. You will probably want to remember the command line options for future builds of Amanda.
==Building==
# Edit examples/config.site and install it in the directory $prefix/etc or $prefix/share. When configure runs the next time it will look for this file and use it to configure Amanda.
 
==Installing Amanda binaries==


* Back at the top-level source directory, build the sources:
* Back at the top-level source directory, build the sources:
Line 46: Line 44:
  make install
  make install


Make sure that you don't build the software as root, you may run the first make-command as "amanda", for example. On the other hand you have to run make install as root to get the binaries installed with the proper permissions. If you want to change the compiler flags, you can do so like this:
Make sure that you don't build the software as root.  You may want to run the first make-command as "amanda", for example. On the other hand you have to run make install as root to get the binaries installed with the proper permissions.  
 
make CFLAGS="-O3 -Wall"


* If you have built with USE_VERSION_SUFFIXES, you will want to create symlinks to the version you wish to use, eg: ln -s amdump-x.y.z amdump This is not done automatically by the install process, so that you can have multiple AMANDA versions co-existing, and choose yourself which to make the default version. The script contrib/set_prod_link.pl may save you some keystrokes.
* If you have built with USE_VERSION_SUFFIXES, you will want to create symlinks to the version you wish to use, eg: ln -s amdump-x.y.z amdump This is not done automatically by the install process, so that you can have multiple AMANDA versions co-existing, and choose yourself which to make the default version. The script contrib/set_prod_link.pl may save you some keystrokes.


* Run ldconfig as root to update the paths to the recently installed shared libraries (only applicable on certain systems).
* Run ldconfig as root to update the paths to the recently installed shared libraries (only applicable on certain systems).

Revision as of 14:51, 20 June 2007

If you have different platforms, you only need to install the whole Amanda package on the tape server host (the one with tape drive). On the backup client hosts (the ones you are going to dump), you only need to compile some of the Amanda programs (See Backup client configuration).

Building Amanda from Source

When you download a source package or a snapshot, the configure script is already generated, and you can compile on a system without the autotools installed. This is recommended for everyone who is not developing Amanda.

If yu need to generate the "configure" script, run the "./autogen" script in the top level directory of the Amanda sources.

Compile time parameters

Read about the different configuration options available for building and running Amanda. To see the options, run

./configure --help

to see the available options that configure takes.

Configure command line options

  • Choose which user and group you will run the dumps under. Common choices for user are `bin' or another user specifically created for Amanda, such as `amanda'; common choices for group are `operator' or `disk'. If you do not specify --with-user=<username> and --with-group=<groupname>, configure will abort.
  • Choose the default name for your configuration, such as `csd' or `DailySet1). This name is used by the Amanda commands to choose one of multiple possible configurations. You may specify it using the --with-config=<confgname>.
  • If you want to change the compiler flags, you can do so like this:
./configure CFLAGS="-O3 -Wall" --other-options...
  • Decide where Amanda will live. You need to choose a root directory for Amanda. Let this root directory be called $prefix. Unless you change the default behavior with the appropriate command line options, Amanda will install itself as. Listed below you find the appropriate configure-option for each directory to change the location of this part of Amanda.
--sbindir=$prefix/sbin					Amanda server side programs
--libexecdir=$prefix/libexec				Amanda backup client programs
--libdir=$prefix/lib					Amanda dynamic libraries
--with-configdir=$prefix/etc/amanda			Runtime configuration files
--with-gnutar-listdir=$prefix/var/amanda/gnutar-lists	Directory for GNU-tar lists (client)
--mandir=$prefix/man					Directory for manual pages

Note that the GNU-tar listdir should be a local filesystem on each client that is going to be backed up with GNU-tar. If it really must be NFS-mounted, make sure the filesystem is exported so that the client has root access to it.

  • Decide if you are compiling Amanda on a server only or a client only platform. If you have a particular operating system that will only be a Amanda client and will never run as the master tape host, then add the --without-server option to configure. In the unlikely case that you have a particular operating system that will serve as the tape host and you do not wish to back up any machines that run this operating system, add the --without-client option to the configure options.

Now configure Amanda. There are two ways of doing this. If you are running Amanda on a single OS, then probably the first method works better for you. If you need to support multiple platforms, then the second method will work better.

Building

  • Back at the top-level source directory, build the sources:
make

and as root

make install

Make sure that you don't build the software as root. You may want to run the first make-command as "amanda", for example. On the other hand you have to run make install as root to get the binaries installed with the proper permissions.

  • If you have built with USE_VERSION_SUFFIXES, you will want to create symlinks to the version you wish to use, eg: ln -s amdump-x.y.z amdump This is not done automatically by the install process, so that you can have multiple AMANDA versions co-existing, and choose yourself which to make the default version. The script contrib/set_prod_link.pl may save you some keystrokes.
  • Run ldconfig as root to update the paths to the recently installed shared libraries (only applicable on certain systems).