Open adlp opened 9 months ago
Just some add :
I've try to add recreate the container after adding this
diff --git a/src/cyborgbackup/main/tasks.py b/src/cyborgbackup/main/tasks.py
index 41d60b6..9b5e5bc 100644
--- a/src/cyborgbackup/main/tasks.py
+++ b/src/cyborgbackup/main/tasks.py
@@ -1442,6 +1442,7 @@ class RunJob(BaseTask):
if policy_type == 'folders':
obj_folders = json.loads(job.policy.extra_vars)
path = ' '.join(obj_folders['folders'])
+ excludedDirs = ' '.join(obj_folders['exclude_dirs'])
if policy_type == 'mail':
path = '/var/lib/mail /var/mail'
if policy_type in ('mysql', 'postgresql', 'piped'):
I've try to rebuild the container with the master branch or the develop branch, same result : no more result in the UI
And I would to add an this borg parameters --exclude-if-present NOBACKUP
I have rechecked the code and for now, you can exclude folder on the "Folders" policy but the backup command doesn't handle them.
"RootFS" policy cannot have excluded dirs added.
I can configure both of them to handle an exclude folders options. Today, each folders present on the current list are added to an exclude option of borg. I'm not sure to understand the difference between --exclude and --exclude-if-present option of Borg :/
Hello,
I would backup a server, with the type "Root FileSystem" (because a big part of the current exclusion are fine to me) But, I would like to exclude to other directory (and one of them is /var/lib/docker :D )
I've not found the right syntax
Please help :dagger:
Antoine.