mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 13:51:35 +01:00
fix: better rfc complient filters
This commit is contained in:
10
backup.py
10
backup.py
@@ -48,7 +48,15 @@ def createBackupScriptStructure(backupList, baseDomain=""):
|
|||||||
print("WARNING: Root (/) is not allowed as backup path (skipping..)".format(p))
|
print("WARNING: Root (/) is not allowed as backup path (skipping..)".format(p))
|
||||||
continue
|
continue
|
||||||
else:
|
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)
|
fullPaths.append(cur)
|
||||||
|
|
||||||
# keep order (important!)
|
# keep order (important!)
|
||||||
|
|||||||
Reference in New Issue
Block a user