Closed

Description
I am having trouble using exclude and include. What I want to do is copy everything from the webroot
folder except the webroot/scss
folder.
I can do it from the commandline like
rsync . user@host:/path/to.files --rsh ssh --recursive --dry-run --verbose --exclude="webroot/scss" --include="webroot/***" --exclude="*"
But I cannot figure out how to do it using rsyncwrapper since include[] always comes before exclude[].
For now I am doing this as a workaround
options: {
recursive: true,
src: ".",
args: ["--exclude=webroot/scss", "--include=webroot/***", "--exclude=*"],
dryRun: true,
dest: "/path/to/files",
host: "[email protected]",
}
Would it make sense to allow something like
excludeFirst=[],
include=[].
exclude=[]
Or is there some clever way to write the include/exclude rules to make it work as is?
Metadata
Metadata
Assignees
Labels
No labels