azcopy only psts

Efff dd 556 Reputation points
2021-03-27T19:38:37.707+00:00

Hello
is there a way to have AzCopy.exe search the source for particular file types? just psts and copy them up to the blob?

right now i have to move all pst to one new folder and then have AzCopy.exe /Source:"E:\Users\PSTs\and" to the blob storage.

thanks

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,211 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,910 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,653 questions
{count} votes

Accepted answer
  1. deherman-MSFT 37,411 Reputation points Microsoft Employee
    2021-03-29T22:31:36.597+00:00

    @Efff dd
    The option you are looking for is --include-pattern see more in the documentation here and here .

    Example:

    azcopy cp "https://xx.blob.core.windows.net/test1/folder1?sas" "https://xx.blob.core.windows.net/test1/archive1?sas" --include-pattern "*.pst" --recursive=true  
    

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Efff dd 556 Reputation points
    2021-03-29T11:52:29.267+00:00

    No

    azcopy looks at the specified source given can it be set to only pickup PST file? (in my case)

    AzCopy.exe /Source:"E:\Users\PSTs\and*.pst"

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.