bakonf

Name

bakonf -- A configuration backup tool

Synopsis

bakonf [-c, --config=FILENAME] [-f, --file=FILENAME | -d, --dir=DIRECTORY] [-g, --gzip | -b, --bzip2] [--no-filesystem | --no-commands] {-L, --level=0|1} [-S, --state-file=FILENAME] [-v, --verbose...] [-q, --quiet]

bakonf --version

bakonf -h, --help

Description

Archive some parts of the filesystem and command output, as directed by the configuration file.

The following options are recognized:

-L, --level=0|1

this options applies to the archiving of files. If the level given is 0, the state database is cleared, all files which match the configuration options are archived, and their state is then saved in the state database. If the level is 1, the database is opened readonly, and only the files which are no longer equal with their state as recorded in the database, or files which don't have an entry in the database, are stored.

The recommended operation mode is to create weekly an archive using level 0, and daily one using level 1. In this way, you need any weekly archive to recreate the full system, and if the daily archive is also available, you will have the latest configuration.

-c, --config=FILENAME

use FILENAME as configuration file, instead of the default /etc/bakonf/bakonf.xml

-f, --file=FILE

save the generated archive as FILE. Note that if this parameter is given it will override any directory given with -d (i.e. this name is taken a a full filename).

-d, --dir=DIRECTORY

save the generated archive under the given DIRECTORY. The filename will be constructed using the current hostname and year, month, day (e.g. host.example.com-2002-12-19.tar). If any of the compression options are given, the file will have the proper suffix appended. If not given, the default directory is /var/lib/bakonf/archives.

-S, --state-file=FILE

This options will override the value for the database. It can be used for quick testing instead of modifying the config file.

-g, --gzip

compress the generated archive with gzip

-b, --bzip2

compress the generated archive with bzip2

--no-filesystem

do not save any files in the filesystem. In this case bakonf does not even open a database, but you must still give the -L option.

--no-commands

do not save command output in the archive

-v, --verbose

increases the verbosity by one; the default level of verbosity is one, under which information and higher severity messages are displayed; at level two, debug mode is enabled which shows the trace of actions

-q, --quiet

resets the verbosity to zero; at this level, only warning and higher messages are shown

--version

shows the version number and exits

-h, --help

shows a short help message about the invocation and exits

Author

Written by Iustin Pop, <iusty@k1024.org>

Copyright

Copyright © 2002, 2004, 2008, 2009, 2010 by Iustin Pop

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, please write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.