Understanding --include-from to selectively transfer folders -dry-run is saying Excluded

I have a folder that I had to split out into two shared drives and I'm trying to best understand how I now can run a single rclone command to sync those specific folders in each shared drive. When I attempted the following, I was seeing everything being Excluded.

2021/12/28 11:02:51 DEBUG : rclone: Version "v1.57.0" starting with parameters ["C:\\rclone\\rclone.exe" "sync" "D:\\File Server\\P Drive\\Provider Folders" "--include-from" "C:\\rclone\\includes\\provider-0.txt" "provider-0:/" "--log-file" "C:\\rclone\\logs\\upload-ProviderFolders_provider-0_1.txt" "-vv" "--dry-run"]
2021/12/28 11:02:51 DEBUG : Creating backend with remote "D:\\File Server\\P Drive\\Provider Folders"
2021/12/28 11:02:51 DEBUG : Using config file from "C:\\Users\\admin\\AppData\\Roaming\\rclone\\rclone.conf"
2021/12/28 11:02:51 DEBUG : fs cache: renaming cache item "D:\\File Server\\P Drive\\Provider Folders" to be canonical "//?/D:/File Server/P Drive/Provider Folders"
2021/12/28 11:02:51 DEBUG : Creating backend with remote "provider-0:/"
2021/12/28 11:02:51 DEBUG : fs cache: renaming cache item "provider-0:/" to be canonical "provider-0:"
2021/12/28 11:02:51 DEBUG : Operations.lnk: Excluded
2021/12/28 11:02:51 DEBUG : PdfServleth.pdf: Excluded
2021/12/28 11:02:51 DEBUG : Thumbs.db: Excluded
2021/12/28 11:02:51 DEBUG : PdfServleth.pdf: Excluded
2021/12/28 11:02:51 DEBUG : T/Talalenko - Curative PSA _ 04.25.2024.pdf: Excluded
2021/12/28 11:02:51 DEBUG : S/Stively - BLS - 7.2023.pdf: Excluded
2021/12/28 11:02:51 DEBUG : W/Thumbs.db: Excluded
2021/12/28 11:02:51 DEBUG : P/Thumbs.db: Excluded
2021/12/28 11:02:51 DEBUG : Q/Quartey, James/Credentialing/FAX_20191227_1577476878_281.pdf: Excluded
2021/12/28 11:02:51 DEBUG : Q/Quartey, James/Credentialing/Immunizations.pdf: Excluded
....

provider-0.txt

.ASN Travelers
.Billable Travel
.CVSS Master provider file
.Master Provider File
3rd party doctors
A
B
C
Censeo Licensing
D
E
F
Fidelis Licensing
G
H
I
J
K
L

Similar results with a slightly different provider-0.txt file

2021/12/28 11:11:52 DEBUG : rclone: Version "v1.57.0" starting with parameters ["C:\\rclone\\rclone.exe" "sync" "D:\\File Server\\P Drive\\Provider Folders" "--include-from" "C:\\rclone\\includes\\provider-0.txt" "provider-0:/" "--log-file" "C:\\rclone\\logs\\upload-ProviderFolders_provider-0_1.txt" "-vv" "--dry-run"]
2021/12/28 11:11:52 DEBUG : Creating backend with remote "D:\\File Server\\P Drive\\Provider Folders"
2021/12/28 11:11:52 DEBUG : Using config file from "C:\\Users\\admin\\AppData\\Roaming\\rclone\\rclone.conf"
2021/12/28 11:11:52 DEBUG : fs cache: renaming cache item "D:\\File Server\\P Drive\\Provider Folders" to be canonical "//?/D:/File Server/P Drive/Provider Folders"
2021/12/28 11:11:52 DEBUG : Creating backend with remote "provider-0:/"
2021/12/28 11:11:52 DEBUG : fs cache: renaming cache item "provider-0:/" to be canonical "provider-0:"
2021/12/28 11:11:52 DEBUG : .ASN Travelers: Excluded
2021/12/28 11:11:52 DEBUG : .Billable Travel: Excluded
2021/12/28 11:11:52 DEBUG : .CVSS Master provider file: Excluded
2021/12/28 11:11:52 DEBUG : .Master Provider File: Excluded
2021/12/28 11:11:52 DEBUG : 3rd party doctors: Excluded
2021/12/28 11:11:52 DEBUG : A: Excluded
2021/12/28 11:11:52 DEBUG : B: Excluded
2021/12/28 11:11:52 DEBUG : C: Excluded
2021/12/28 11:11:52 DEBUG : Censeo Licensing: Excluded
...

.ASN Travelers\**
.Billable Travel\**
.CVSS Master provider file\**
.Master Provider File\**
3rd party doctors\**
A\**
B\**
C\**
Censeo Licensing\**
D\**
E\**
F\**
Fidelis Licensing\**
G\**
H\**
I\**
J\**
K\**
L\**

hi,

more accurate to state that nothing is being included.

as per the docs
Important Use / in path/file name patterns and not \ even if running on Microsoft Windows.

A/**, not A\**

and sometimes easier to test filters using rclone ls

as per the docs

Can you provide a link to the doc reference you are referring to? I am looking at the docs, Paths on Windows where it says differently

Path separator can be either \ (as in C:\path\to\wherever ) or / (as in C:/path/to/wherever )

you are confusing two different types of paths. no worries, as filtering can be very confusing for windows users.
--- paths used, on windows, as source and dest, for rclone commands, can use \ and /
--- paths used for rclone filters can only use / as per the filters doc page.

really, very easy to prove it.

rclone tree d:\test
/
├── A
│   └── a.txt
└── B
    └── b.txt

2 directories, 2 files

rclone tree d:\test --include="/A/**" --include="\B\**"
/
└── A
    └── a.txt

1 directories, 1 files

I was not saying you were wrong. I was asking for you to provide a link to the documentation which you were referencing. Now that you said filtering, I found what you were referring to under the Pattern Syntax heading of the filtering page.

just search the filter doc page for the quote that i shared up above,

Important Use / in path/file name patterns and not \ even if running on Microsoft Windows.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.