hexojs / hexojs/hexo-deployer-rsync

Can't exclude multiple directories

Open
#22 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
54
Forks
28
PR merge metrics
No merged PRs in 30d

Description

With `args: '--exclude=dir1'` works fine, `dir1` is excluded. How to exclude multiple directories? I tried

```
args: '--exclude=dir1 --exclude=dir2'
args: '--exclude={dir1,dir2}'
exclude: [dir1, dir2]
exclude: ['dir1', 'dir2']
```

with no luck. `Rsync` doesn't exclude anything with these setups.

Well, finally I figured out that it can be done like this:

```
args: '--exclude-from=list-of-files-to-exclude'
```

where `list-of-files-to-exclude` is file where all directories and files to be excluded are listed:

```
dir1
dir2
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.