1. NAME

ccollect_add_source - create new source for ccollect(1)

2. SYNOPSIS

ccollect_add_source.sh <hostnames to create sources for>

3. DESCRIPTION

ccollect_add_source.sh creates a new backup source for use with ccollect(1). It copies the files from to the source directory with the hostname below $CCOLLECT_CONF/sources. It is designed to run on a backup server to create new directories for new hosts.

4. FILES

$CCOLLECT_CONF/defaults/sources

Main configuration directory. $CCOLLECT_CONF is /etc/ccollect, if unset. All the following files reside below this directory.

exclude
summary
intervals
pre_exec
post_exec
rsync_options
verbose
very_verbose

Those are the standard configuration files known by ccollect(1). If the file exist it will be copied to the newly created source. Directories (intervals) are copied recursively.

destination_base

A link to the directory where to store the backups. Below this directory ccollect_add_source.sh will create a directory with the hostname you specified on the command line. A common valua for destination_base is /home/server/backup.

source_prefix
source_postfix

source_prefix is put before the hostname, source_postfix is appended after it. A common value for source_prefix maybe root@ and :/ for source_postfix.

5. SEE ALSO

ccollect(1), ccollect_analyse_logs.sh, ccollect_delete_source(1), ccollect_list_intervals(1), ccollect_logwrapper(1),

6. AUTHOR

Nico Schottelius <nico-ccollect--@--schottelius.org>

7. RESOURCES

Main web site: http://www.nico.schottelius.org/software/ccollect/

8. COPYING

Copyright (C) 2007-2008 Nico Schottelius. Free use of this software is granted under the terms of the GNU General Public License Version 3 (GPLv3).