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

AZCopy Sync with Exclude-path does not work with DFS as source #2726

Open
Rangeshmsft opened this issue Jun 18, 2024 · 0 comments
Open

AZCopy Sync with Exclude-path does not work with DFS as source #2726

Rangeshmsft opened this issue Jun 18, 2024 · 0 comments
Assignees

Comments

@Rangeshmsft
Copy link

Which version of the AzCopy was used?

Note: version 10

Which platform are you using? (ex: Windows, Mac, Linux)

windows

What command did you run?

azcopy.exe sync "\contoso.com\data\private" "https://storagename.file.core.windows.net/usfscontoso/Unstructured/private?sv=[token-redacted]" --exclude-path "hr/" --exclude-pattern thumbs.db --recursive=true --from-to=LocalFile --delete-destination=prompt --put-md5 --preserve-smb-info=true --log-level=INFO --trailing-dot=Enable --dry-run;

What problem was encountered?

Background:

We are trying to sync his on prem folder through AZcopy sync and wants to exclude a folder

using the below command
azcopy.exe sync "\contoso.com\data\private" "https://storagename.file.core.windows.net/usfscontoso/Unstructured/private?sv=[token-redacted]" --exclude-path "hr/" --exclude-pattern thumbs.db --recursive=true --from-to=LocalFile --delete-destination=prompt --put-md5 --preserve-smb-info=true --log-level=INFO --trailing-dot=Enable --dry-run;

Here the source \contoso.com\data\private is a DFS and /hr folder is a subfolder (\contoso.com\data\private\hr)
\contoso.com\data\private\hr is a folder with target to say \contoso.com\something\hr

When he tried to exclude this folder in the azcopy, the exclusion does not happen

This is only happening when the source is a DFS.

We tested the following

  1. Exclude path with source as Local drive works fine (eg source - c:/Private Exclude path "hr/" c:/Private/hr gets excluded)- working
  2. Exclude path works fine with any source as UNC path (eg source - //contoso.com/share/Private Exclude path "hr/" //contoso.com/share/Private/hr gets excluded)- working
  3. But when the source is a DFS and customer tried to exclude a path that is a reference path in DFS, It does not exclude it. (eg source - //contoso.com/share/Private Exclude path "hr/" and "hr" is a DFS path to //contoso.com//something //contoso.com/share/Private/hr does not gets excluded) - not working

How can we reproduce the problem in the simplest way?

Create a DFS having folder with targets. Run AZcopy with Exclude path on the folder

Have you found a mitigation/solution?

No

@ashruti-msft ashruti-msft self-assigned this Jun 25, 2024
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