milanmk / actions-file-deployer

Composite GitHub Action (Linux runner) for deploying repository content to remote server. Fast and customizable deployment with proxy support. Deploy only changed files or do full sync/mirror of repository content.
The Unlicense
62 stars 14 forks source link

Exclude directories on full sync example #26

Closed titosemi closed 6 months ago

titosemi commented 6 months ago

Hi.

first of all, thanks a lot for the great repo!

I am struggling with the syntax for excluding certain directories with the full sync. I think that I should be using the ftp-mirror-options property. So far I have tried, without success, exclude, --exclude, --exclude-glob, --exclude-glob=.

Thanks a lot in advance for your support!

milanmk commented 6 months ago

Could you provide examples of the exclude options that you have tried with mirror.

titosemi commented 6 months ago

My last try was like this:

          ftp-mirror-options: |
            --exclude-glob=.git/* 
            --exclude-glob=.git*/* 
            --exclude-glob=build/* 
            --exclude-glob=data/* 
            --exclude-glob=node_modules/*

I tried with just the patterns, with --exclude, --exclude-glob, --exclude-glob=

milanmk commented 6 months ago

Try this:

ftp-mirror-options: "--exclude-glob=.git/* --exclude-glob=.git*/* --exclude-glob=build/* --exclude-glob=data/* --exclude-glob=node_modules/*"
titosemi commented 6 months ago

That did the trick.

Thanks a lot for the help!