Exclude file in a specific directory

Hello,

I have a folder structure as follow to upload

- site1
  - settings
    - app.config
  - appdata
    - app.config
    - file1.config
    - file2.config
     
- site 2
  - settings
    - app.config
  - appdata
    - app.config
    - file1.config
    - file2.config

I would like to exclude the app.config files contained in the appdata folder from the upload (see files in bold). How can I achieve this ? I tried to define an exclusion pattern : appdata/app.config but the entire appdata folder is excluded. I also tried /appdata/app.config but as it's not a first folder directory the appdata/app.config files gets updated.

Notice that I have used Deltacopy in the past and I could use --exclude="appdata/app.config" to achieve this

Thank you for your help

Comments

  • /appdata/app.config should work.  I ran a small test and it worked as expected.  According to the doc:

    A pattern may start with '/' which means the pattern will be used to match against the path relative to the local or remote directory


Sign In or Register to comment.