From 26df6757ada617f423f653e114cfacfe40e607cd Mon Sep 17 00:00:00 2001 From: Eugene Paskevich Date: Tue, 6 May 2014 22:09:03 +0300 Subject: Revised trace file generation a bit. - Added an option to write the date only. - Added an option to change the hostname written into the trace file. - Open the new temporary trace file for writing only once. --- etc/ftpsync.conf.sample | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'etc/ftpsync.conf.sample') diff --git a/etc/ftpsync.conf.sample b/etc/ftpsync.conf.sample index c8750fe..6258c57 100644 --- a/etc/ftpsync.conf.sample +++ b/etc/ftpsync.conf.sample @@ -6,7 +6,7 @@ ######################################################################## ######################################################################## -## Mirrorname. This is used for things like the trace file and should always +## Mirrorname. This is used for things like the trace file name and should always ## be the full hostname of the mirror. #MIRRORNAME=`hostname -f` @@ -108,13 +108,17 @@ ## what it will be. ## Possible values are ## "full" - all information -## "terse" - basic, timestamp only (date -u) +## "terse" - partial, ftpsync version and local hostname +## "date" - basic, timestamp only (date -u) ## "touch" - just touch the file in existance ## "none" - no tracefile at all ## ## Default and required value for Debian mirrors is full. #EXTENDEDTRACE="full" +## The local hostname to be written to the trace file. +#TRACEHOST="$(hostname -f)" + ## We sync our mirror using rsync (everything else would be insane), so ## we need a few options set. ## The rsync program -- cgit v1.2.3