From e8044b6f79bd626cad02a8e48346cdb3cad5173b Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 16 Aug 2007 23:50:55 +0200 Subject: [PATCH] Using source names or interval in pre_/post_exec scripts --- doc/ccollect.text | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/doc/ccollect.text b/doc/ccollect.text index ec6678b..c3756e4 100644 --- a/doc/ccollect.text +++ b/doc/ccollect.text @@ -511,6 +511,17 @@ the user. Hints ----- +Using source names or interval in pre_/post_exec scripts +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +The pre-/post_exec scripts can access some internal variables from `ccollect`: + +- INTERVAL: The interval specified on the command line +- no_sources: number of sources +- source_$NUM: the name of the source +- name: the name of the currently being backuped source (not available for + generic pre_exec script) + + Using rsync protocol without ssh ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When you have a computer with little computing power, it may be useful to use