az storage file copy

파일 복사 작업을 관리합니다.

명령

az storage file copy cancel

보류 중인 copy_file 작업을 중단하고 대상 파일의 길이와 전체 메타데이터를 0으로 둡니다.

az storage file copy start

파일을 비동기적으로 복사합니다.

az storage file copy start-batch

여러 파일 또는 Blob을 파일 공유에 복사합니다.

az storage file copy cancel

보류 중인 copy_file 작업을 중단하고 대상 파일의 길이와 전체 메타데이터를 0으로 둡니다.

az storage file copy cancel --copy-id
                            --destination-path
                            --destination-share
                            [--account-key]
                            [--account-name]
                            [--connection-string]
                            [--sas-token]
                            [--subscription]
                            [--timeout]

필수 매개 변수

--copy-id

원래 copy_file 작업의 copy.id 제공된 복사 식별자입니다.

--destination-path -p

파일 공유 내의 파일 경로입니다.

--destination-share -s

대상 공유의 이름입니다. 공유가 있어야 합니다.

선택적 매개 변수

--account-key

스토리지 계정 키. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_KEY.

--account-name

Storage 계정 이름 관련 환경 변수: AZURE_STORAGE_ACCOUNT. 스토리지 계정 키 또는 SAS 토큰과 함께 사용해야 합니다. 둘 다 없는 경우 명령은 인증된 Azure 계정을 사용하여 스토리지 계정 키를 쿼리하려고 시도합니다. 많은 수의 스토리지 명령이 실행되면 API 할당량에 도달할 수 있습니다.

--connection-string

계정 연결 문자열을 Storage. 환경 변수: AZURE_STORAGE_CONNECTION_STRING.

--sas-token

SAS(공유 액세스 서명)입니다. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_SAS_TOKEN.

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

--timeout

요청 시간 제한(초)입니다. 서비스에 대한 각 호출에 적용됩니다.

az storage file copy start

파일을 비동기적으로 복사합니다.

az storage file copy start --destination-path
                           --destination-share
                           [--account-key]
                           [--account-name]
                           [--connection-string]
                           [--file-snapshot]
                           [--metadata]
                           [--sas-token]
                           [--source-account-key]
                           [--source-account-name]
                           [--source-blob]
                           [--source-container]
                           [--source-path]
                           [--source-sas]
                           [--source-share]
                           [--source-snapshot]
                           [--source-uri]
                           [--subscription]
                           [--timeout]

예제

파일을 비동기적으로 복사합니다.

az storage file copy start --source-account-name srcaccount --source-account-key 00000000 --source-path <srcpath-to-file> --source-share srcshare --destination-path <destpath-to-file> --destination-share destshare --account-name destaccount --account-key 00000000

sas 토큰을 사용하여 원본 URI에서 대상 스토리지 계정으로 파일을 비동기적으로 복사합니다.

az storage file copy start --source-uri "https://srcaccount.file.core.windows.net/myshare/mydir/myfile?<sastoken>" --destination-path <destpath-to-file> --destination-share destshare --account-name destaccount --sas-token <destination-sas>

sas 토큰을 사용하여 파일 스냅샷에서 대상 스토리지 계정으로 파일을 비동기적으로 복사합니다.

az storage file copy start --source-account-name srcaccount --source-account-key 00000000 --source-path <srcpath-to-file> --source-share srcshare --file-snapshot "2020-03-02T13:51:54.0000000Z" --destination-path <destpath-to-file> --destination-share destshare --account-name destaccount --sas-token <destination-sas>

필수 매개 변수

--destination-path -p

파일 공유 내의 파일 경로입니다.

--destination-share -s

대상 공유의 이름입니다. 공유가 있어야 합니다.

선택적 매개 변수

--account-key

스토리지 계정 키. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_KEY.

--account-name

Storage 계정 이름 관련 환경 변수: AZURE_STORAGE_ACCOUNT. 스토리지 계정 키 또는 SAS 토큰과 함께 사용해야 합니다. 둘 다 없는 경우 명령은 인증된 Azure 계정을 사용하여 스토리지 계정 키를 쿼리하려고 시도합니다. 많은 수의 스토리지 명령이 실행되면 API 할당량에 도달할 수 있습니다.

--connection-string

계정 연결 문자열을 Storage. 환경 변수: AZURE_STORAGE_CONNECTION_STRING.

--file-snapshot

원본 스토리지 계정에 대한 파일 스냅샷입니다.

--metadata

공백으로 구분된 키=값 쌍의 메타데이터입니다. 이렇게 하면 기존 메타데이터가 덮어쓰입니다.

--sas-token

SAS(공유 액세스 서명)입니다. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_SAS_TOKEN.

--source-account-key

원본 Blob의 스토리지 계정 키입니다.

--source-account-name

원본 Blob의 스토리지 계정 이름입니다.

--source-blob

원본 스토리지 계정의 Blob 이름입니다.

--source-container

원본 스토리지 계정의 컨테이너 이름입니다.

--source-path

원본 스토리지 계정의 파일 경로입니다.

--source-sas

원본 스토리지 계정에 대한 공유 액세스 서명입니다.

--source-share

원본 스토리지 계정의 공유 이름입니다.

--source-snapshot

원본 스토리지 계정에 대한 Blob 스냅샷입니다.

--source-uri -u

Azure 파일 또는 Blob을 지정하는 최대 2KB 길이의 URL입니다. 값은 요청 URI에 표시되므로 URL 인코딩해야 합니다. 원본이 다른 계정에 있는 경우 원본은 공용이거나 공유 액세스 서명을 통해 인증되어야 합니다. 원본이 공용인 경우 인증이 필요하지 않습니다. 예: https://myaccount.file.core.windows.net/myshare/mydir/myfilehttps://otheraccount.file.core.windows.net/myshare/mydir/myfile?sastoken .

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

--timeout

요청 시간 제한(초)입니다. 서비스에 대한 각 호출에 적용됩니다.

az storage file copy start-batch

여러 파일 또는 Blob을 파일 공유에 복사합니다.

az storage file copy start-batch [--account-key]
                                 [--account-name]
                                 [--connection-string]
                                 [--destination-path]
                                 [--destination-share]
                                 [--dryrun]
                                 [--metadata]
                                 [--pattern]
                                 [--sas-token]
                                 [--source-account-key]
                                 [--source-account-name]
                                 [--source-container]
                                 [--source-sas]
                                 [--source-share]
                                 [--source-uri]
                                 [--subscription]
                                 [--timeout]

예제

파일 공유의 모든 파일을 다른 스토리지 계정에 복사합니다.

az storage file copy start-batch --source-account-name srcaccount --source-account-key 00000000 --source-share srcshare --destination-path <destpath-to-directory> --destination-share destshare --account-name destaccount --account-key 00000000

파일 공유의 모든 파일을 다른 스토리지 계정에 복사합니다. sas 토큰이 있는 입니다.

az storage file copy start-batch --source-uri "https://srcaccount.file.core.windows.net/myshare?<sastoken>" --destination-path <destpath-to-directory> --destination-share destshare --account-name destaccount --sas-token <destination-sas>

선택적 매개 변수

--account-key

스토리지 계정 키. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_KEY.

--account-name

Storage 계정 이름 관련 환경 변수: AZURE_STORAGE_ACCOUNT. 스토리지 계정 키 또는 SAS 토큰과 함께 사용해야 합니다. 둘 다 없는 경우 명령은 인증된 Azure 계정을 사용하여 스토리지 계정 키를 쿼리하려고 시도합니다. 많은 수의 스토리지 명령이 실행되면 API 할당량에 도달할 수 있습니다.

--connection-string

계정 연결 문자열을 Storage. 환경 변수: AZURE_STORAGE_CONNECTION_STRING.

--destination-path

원본 데이터가 복사되는 디렉터리입니다. 생략하면 데이터가 루트 디렉터리에 복사됩니다.

--destination-share

원본 데이터가 복사되는 파일 공유입니다.

--dryrun

복사할 파일 및 Blob을 나열합니다. 실제 데이터 전송은 발생하지 않습니다.

--metadata

공백으로 구분된 키=값 쌍의 메타데이터입니다. 이렇게 하면 기존 메타데이터가 덮어쓰입니다.

--pattern

파일 및 Blob을 globbing하는 데 사용되는 패턴입니다. 지원되는 패턴은 * ' ', '?', '[seq]' 및 '[!seq]'입니다. 자세한 내용은 을 https://docs.python.org/3.7/library/fnmatch.html 참조하세요.

--sas-token

SAS(공유 액세스 서명)입니다. 스토리지 계정 이름과 함께 사용해야 합니다. 환경 변수: AZURE_STORAGE_SAS_TOKEN.

--source-account-key

원본 스토리지 계정의 계정 키입니다. 생략하면 계정 키를 확인하는 데 활성 로그인이 사용됩니다.

--source-account-name

데이터를 복사할 원본 스토리지 계정입니다. 생략하면 대상 계정이 사용됩니다.

--source-container

원본 컨테이너 Blob이 복사됩니다.

--source-sas

원본 스토리지 계정에 대한 공유 액세스 서명입니다.

--source-share

원본 공유 파일이 복사됩니다.

--source-uri

원본 파일 공유 또는 Blob 컨테이너를 지정하는 URI입니다.

--subscription

구독의 이름 또는 ID입니다. 를 사용하여 기본 구독을 구성할 수 az account set -s NAME_OR_ID 있습니다.

--timeout

요청 시간 제한(초)입니다. 서비스에 대한 각 호출에 적용됩니다.