borgbackup / borgbackup/borg

make --exclude-if-present support shell-like patterns

Open
#4,927 2 comments 0 reactions 0 assignees View on GitHub
cmd: create patterns
Dominant language
Python
Stars
13.7k
Forks
875
Avg merge
11h 15m
Merged PRs (30d)
192

Description

Yes, I checked docs, FAQ and open issues.
Borg version: 1.1.10 on Fedora F31.

This is an enhancement request.

It would be nice if `--exclude-if-present PATTERN` was understood and not just `--exclude-if-present NAME`. That way
```
borg create --keep-exclude-tags --exclude-if-present sh:/path/**/.git /path ...
```
would backup everything under /path but if a git repository was present in any directory then only that repo and nothing else from the directory. Best also except if another subdirectory again has a .git submodule that subdirectory then again is backed up.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.