projects
/
sitarba.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
call tar with -v if sitarbar got --verbosity debug
[sitarba.git]
/
sitarba
diff --git
a/sitarba
b/sitarba
index c236ba0589e68018b41991ba3231ef40b6396ed3..d941c7048e5571099cf83ccfccb4b752b96329a5 100755
(executable)
--- a/
sitarba
+++ b/
sitarba
@@
-224,6
+224,10
@@
class Config:
e = Epoch()
if name in self.epochs:
raise Config.ReadError("Epoch '{0}' already defined.".format(name))
e = Epoch()
if name in self.epochs:
raise Config.ReadError("Epoch '{0}' already defined.".format(name))
+ p = re.compile(r'^\w+$')
+ if not p.match(name):
+ raise Config.ReadError("Epoch name '{0}' does not only " + \
+ "comprise alphanumeric characters.".format(name))
if name in Epoch.units:
e.unit = name
if name in Epoch.units:
e.unit = name
@@
-267,6
+271,11
@@
class Config:
def _read_set(self, config, sec):
name = sec[4:].strip()
def _read_set(self, config, sec):
name = sec[4:].strip()
+ p = re.compile(r'^\w+$')
+ if not p.match(name):
+ raise Config.ReadError("Set name '{0}' does not only " + \
+ "comprise alphanumeric characters.".format(name))
+
dirs = []
excludes = []
dirs = []
excludes = []
@@
-394,7
+403,7
@@
class BackupManager:
taropts = []
# Tar is verbose is sitarba is verbose
taropts = []
# Tar is verbose is sitarba is verbose
- if LogConf.con.level <= logging.
INFO
:
+ if LogConf.con.level <= logging.
DEBUG
:
taropts += ["--verbose"]
# Add the since date, if given
taropts += ["--verbose"]
# Add the since date, if given