Commit 2b6d5bc8 authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

update appendix - csbackgen

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4432
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 6539e4b9
......@@ -39,7 +39,7 @@ LOCBINDIR=~/bin
RSYNC=$(shell env which rsync)
CRON=$(shell ps -ef | grep -v grep | grep -cw cron)
SYSLOGNG=$(shell ps -ef | grep -v grep | grep -cw syslog)
LOGROTATE=$(shell ps -ef | grep -v grep | grep logrotate)
LOGROTATE=$(shell if [ -d /etc/logrotate.d/ ]; then echo logrotate; fi)
PYTHON=$(shell env which python)
# ----------------------------------------------------------------------------
......
......@@ -587,14 +587,15 @@ cron expressions.
\subsection{\texttt{csbackgen}}
\begin{verbatim}
Version: V0.4
Version: V0.5
License: GPLv2
$Id$
Author: Daniel Armbruster
Usage: csbackgen [-v|--verbose] [-e REGEX [-e REGEX [...]]]
[-R|--notrecursive] [-d|--debug] [-f|--followlinks]
[-t|--target ROOTDIR] [-l|--logging] [-H|--hash ARG]
[-L|--lock] PATH
[-L|--lock] [-D|--daystart] [--atime N] [--mtime N]
[--ctime N] [--amin N] [--mmin N] [--cmin N] PATH
or: csbackgen -h|--help
-------------------------------------------------------------------------------
-v|--verbose Be verbose.
......@@ -619,16 +620,49 @@ Author: Daniel Armbruster
processes working in the same directory. Setting this
option avoids checksumfile access problems which might
occur.
-D|--daystart Measure times (for --amin, --atime, --cmin, --ctime,
--mmin, and --mtime) from the beginning of today rather
than from 24 hours ago.
--amin N Exclude files which were last accessed N minutes ago.
--atime N Exclude files which were last accessed N*24 hours ago.
To match --atime +1, a file has to have been accessed at
least two days ago.
--cmin N Exclude files which status was last changed N minutes ago.
--ctime N Exclude files which status was last changed N*24 hours
ago.
--mmin N Exclude files which data was last modified N minutes ago.
--mtime N Exclude files which data was last modified N*24 hours
ago.
PATH Path to generate checksumfile(s) for including its
subdirectories if option '-R' is not set.
-------------------------------------------------------------------------------
1. General
==========
csbackgen.py will either generate a checksumfile if still no checksumfile is
available or in case there is an existing checksumfile csbackgen.py will append
the not yet registered files to the current checksumfile. In the latter case
csbackgen.py is working in its update mode.
Notice that in case PATH contains subdirectories and either option '-R' is set
or the subdirectory is excluded by a matching regular expression every
subdirectory will contain a checksumfile.
or the subdirectory is excluded by a matching regular expression or time
specification every subdirectory will contain its own checksumfile.
2. Time specification
=====================
For file selection regarding time numeric arguments can be passed as follows:
+N for greater/older than N,
-N for less/younger than N,
N for exactly N.
a) Notice if several +N (for greater than N) or -N (for less than N) values are
passed with one parameter the last one will overwrite the previous values.
b) --cmin and --ctime arguments are evaluated platform dependent i.e. time of
most recent metadata change on Unix, or the time of creation on Windows.
c) If times for selection file are specified here the files matching were
excluded in contrast to the Unix find command where files were included.
\end{verbatim}
\subsection{\texttt{csbackchk}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment