Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude directories on full sync example #26

Closed
titosemi opened this issue Feb 17, 2024 · 4 comments
Closed

Exclude directories on full sync example #26

titosemi opened this issue Feb 17, 2024 · 4 comments

Comments

@titosemi
Copy link

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
Copy link
Owner

milanmk commented Feb 17, 2024

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

@titosemi
Copy link
Author

titosemi commented Feb 17, 2024

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
Copy link
Owner

milanmk commented Feb 21, 2024

Try this:

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

@titosemi
Copy link
Author

That did the trick.

Thanks a lot for the help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants