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-metas] {-L, --level=0|1}

bakonf --version

bakonf -h, --help

Description

Archive some parts of the filesystem and some meta-informations, 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 virtuals database is cleared, all files which match the configuration options are archived, and their state is then saved in the virtuals 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.

-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, bu you must still give the -L option.

--no-metas

do not save any metainformations in the filesystem

--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 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.