Antonio Bonifati's Home Page

Farmer, Italian language teacher, Lisp functional programmer, sysadmin and free-software fellow

BAK

Section: Maintenance Commands (8)
Updated: Aug 6, 2005
Index

NAME

bak - simple selective backup system

SYNOPSIS

bak [options]

DESCRIPTION

bak (BAckup Kit) is a shell-based backup utility, suitable to backup only selected parts of a system, such as configuration files, local additions, served web sites, important documents, some system information etc.

If the system administrator takes care of saving default version of config files with a conventional extension added before modifying them, bak can automatically backup both the original and customized version. This convention also allows diffs to be made easily.

OPTIONS

When called with no options bak creates a backup archive under the current directory named as per configuration file.
-a, --auto
Specifies how configuration files to backup are automatically found. Overrides default mode defined in configuration file. Valid choices are:
find
Use find(1) to search. Much slower than locate, but ensures all the files will be found.
locate
Use locate(1) to search. Faster than find but needs the locate database to be updated.
off
Disable automatic backup of files with default version.
update
Same as locate but updates the locate db before searching.
-o, --output <file>
File name of the output archive (default is defined in configuration file).
-c, --config-file <file>
Use alternative configuration file
(default is /usr/local/etc/bak.conf).
-v, --version
Print version and exit.
-h, --help
Print help and exit.

FILES

/usr/local/etc/bak.conf
Configuration file.

SEE ALSO

locate(1), tar(1), Web site <http://go.to/ninuzzo/sw/bak.html>.

COPYRIGHT

bak is Copyright (c) 2005 Antonio Bonifati and is licensed through the GNU General Public License. Read the COPYING file for the complete license.

BUGS

Under FreeBSD the standard locate utility is only able to find files and directories readable for user ``nobody''. Unless all your configuration files are world-readable, it is best to use the ``find'' mode to locate files. GNU slocate which comes by default with Linux does not have this limitation.

This document was created by man2html, using the manual pages.
Time: 10:02:49 GMT, August 06, 2005