cyborgbackup / cyborgbackup

CyBorgBackup backup system based on Borg
Other
125 stars 25 forks source link

Exclude, an how to about it please :/ #81

Open adlp opened 9 months ago

adlp commented 9 months ago

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.

adlp commented 9 months ago

Just some add :

GaetanF commented 9 months ago

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 :/