fix: better rfc complient filters

This commit is contained in:
2023-01-07 18:23:22 +01:00
parent 9e84f28039
commit fef784ba88

View File

@@ -48,7 +48,15 @@ def createBackupScriptStructure(backupList, baseDomain=""):
print("WARNING: Root (/) is not allowed as backup path (skipping..)".format(p))
continue
else:
basePaths.append("/{}/".format(cur.split("/")[1]))
tmpPath = "/"
for level in cur.split("/")[:-2]:
if not level:
continue
else:
tmpPath += "{}/".format(level)
if not tmpPath == "/":
basePaths.append(tmpPath)
fullPaths.append(cur)
# keep order (important!)