Added EXCLUDE and INCLUDE options

This commit is contained in:
Morten Olsen
2021-12-09 11:52:28 +01:00
parent f3e3eff019
commit 5fdd21d477
8 changed files with 1469 additions and 504 deletions

View File

@@ -13,6 +13,12 @@ docker run -it --rm \
```
_note: `--user` is not required, but recommended instead of running as root. Remember to give the user write access to the backup directory_
You can also limit which repositories to backup using the environment variabled `INCLUDE` and `EXCLUDE`, which supports a list or repos separated by `,` and with `*` as wildcard
```
-e INCLUDE="morten-olsen/*,morten-olsen-env/dotfiles" -e EXCLUDE="morten-olsen/something,*/test"
```
## Backup structure
```
|-{user1}