X-Git-Url: https://git.llucax.com/software/bacap.git/blobdiff_plain/809d2328e236c71816c9e29c4295476f8a8126d4..b50b160ba2c5c63709440b3a8b15366e47e4f6db:/README?ds=inline diff --git a/README b/README index 878f3dd..67b565f 100644 --- a/README +++ b/README @@ -70,13 +70,19 @@ file. Configuration files are searched in this places: 1. ``/etc/bacaprc`` 2. ``/etc/bacap/bacaprc`` 3. ``bacaprc`` in the same directory as the ``bacap`` script +4. Optional parameter passed as argument to the script +5. ``$CONFIG_PATH/$HOST/bacaprc`` Order is important, since all files are read (if possible) and values in the last configuration file read overwrites old values. The script takes an optional -parameter, which is another location to look for a configuration file. The -configuration file passed as argument will be read last, and an error will be -printed if can't be found (no error is issued if any of the other configuration -files are missing). +parameter, which is another location to look for a configuration file. If the +configuration file passed as argument can't be found, an error will be printed +(no error is issued if any of the other configuration files are missing). +Also, config options could be specified on a per host basis by creating a +``bacaprc`` file in ``$CONFIG_PATH/$HOST``. As a side effect of this, +configuration file(s) are read initially and each time the script backups a new +host. So the configuration file(s) are read at least two times even if you +backup one host. The configuration file is a Bash_ script too, and these are the default values: @@ -114,6 +120,10 @@ backup rata's home:: echo /home/rata/ > $CONFIG_PATH/$LOCALHOST/excludes +Also, if you don't want to exclude files matching some pattern, you can create +a file named ``includes`` with the patterns you want to include (you can use +anything supported by the ``--include-from`` rsync_ option) + That's pretty much it. If you want to add other hosts, just create the host directory and the needed host configuration files.