Skip to content

Can't exclude multiple directories #22

@pozitron57

Description

@pozitron57

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions