You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fixed the relative path of the file at the destination in case of upload with list-of-file flag
* sync counters added
* added question to ask user permission before for sync upload / download
* added the force flag
* changed progress reporting for sync
* changes for sync command
* fixed the smoke test for sync changes
* sync redesign changes
* changes in sync upload algorithm
* Adding a missing comma (Azure#103)
* Adding note about the blob data contributor role (Azure#101)
* sync algorithm changes
* changes in sync upload
* sync download changes
* fixed the error message
* Added script to generate packages
* changed the cca.setScanningComplete place in upload / download case
* fixed the smoke tests for latest sync changes
* fixed uploading empty vhd; delete performance-test-script-win.py
* symlink support added for sync / copy command #TestNotCompleted
* symlink support changes for sync / copy command
* added the http error codes in the JobPartPlanTransfer; changed the Json output format (no new line after each field)
* added blob type flag; localToPageBlob processor
* added append blob; fixed the smoke tests
* fixed the page blob smoke test
* fixed the remove op smoke tests
* added throughput in resume command
* Changes for handling bad / expired sas
* fixed the CR comments for list-of-files flag
* Added env command + allow user to change log location (Azure#106)
* Update script to generate latest_version.txt
* Added env command and allow user to change log location
* CR Comments addressed for CR Changes
* sync redesign changes
* changes in sync upload algorithm
* sync algorithm changes
* changes in sync upload
* sync download changes
* fixed the error message
* changed the cca.setScanningComplete place in upload / download case
* fixed the smoke tests for latest sync changes
* fixed uploading empty vhd; delete performance-test-script-win.py
* symlink support added for sync / copy command #TestNotCompleted
* symlink support changes for sync / copy command
* added the http error codes in the JobPartPlanTransfer; changed the Json output format (no new line after each field)
* added blob type flag; localToPageBlob processor
* added append blob; fixed the smoke tests
* fixed the page blob smoke test
* fixed the remove op smoke tests
* added throughput in resume command
* Changes for handling bad / expired sas
* fixed the CR comments for list-of-files flag
* CR Comments addressed for CR Changes
* Improved content type detection (Azure#109)
* Release 10.0.4
Copy file name to clipboardexpand all lines: README.md
+9
Original file line number
Diff line number
Diff line change
@@ -188,6 +188,15 @@ You can resume a failed/cancelled job using its identifier along with the SAS to
188
188
189
189
Raise an issue on this repository for any feedback or issue encountered.
190
190
191
+
### FAQ
192
+
193
+
- What is the difference between `sync` and `copy`?
194
+
- The `copy` command is a simple transferring operation, it scans the source and attempts to transfer every single file/blob. The supported source/destination pairs are listed in the help message of the tool. On the other hand, `sync` makes sure that whatever is present in the source will be replicated to the destination, and also whatever is not at the source will be deleted from the destination. If your goal is to simply move some files, then `copy` is definitely the right command, since it offers much better performance.
195
+
- For `sync`, last modified times are used to determine whether to transfer the same file present at both the source and the destination.
196
+
- If the use case is to incrementally transfer data, then `sync` is the better choice, since only the modified/missing files are transferred.
197
+
- Will `copy` overwrite my files?
198
+
- By default, AzCopy will overwrite the files at the destination if they already exist. To avoid this behavior, please use the flag `--overwrite`.
199
+
191
200
## Contributing
192
201
193
202
This project welcomes contributions and suggestions. Most contributions require you to agree to a
@@ -829,6 +846,16 @@ Copies source data to a destination location. The supported pairs are:
829
846
- Azure Block Blob (SAS or public) <-> Azure Block Blob (SAS or OAuth authentication)
830
847
831
848
Please refer to the examples for more information.
849
+
850
+
Advanced:
851
+
Please note that AzCopy automatically detects the Content-Type of files when uploading from local disk, based on file extension or file content(if no extension).
852
+
853
+
The built-in lookup table is small but on unix it is augmented by the local system's mime.types file(s) if available under one or more of these names:
854
+
- /etc/mime.types
855
+
- /etc/apache2/mime.types
856
+
- /etc/apache/mime.types
857
+
858
+
On Windows, MIME types are extracted from the registry. This feature can be turned off with the help of a flag. Please refer to the flag section.
@@ -938,12 +965,13 @@ Copy an entire account with SAS:
938
965
cpCmd.PersistentFlags().StringVar(&raw.output, "output", "text", "format of the command's output, the choices include: text, json.")
939
966
cpCmd.PersistentFlags().StringVar(&raw.logVerbosity, "log-level", "INFO", "define the log verbosity for the log file, available levels: DEBUG, INFO, WARNING, ERROR, PANIC, and FATAL.")
940
967
cpCmd.PersistentFlags().Uint32Var(&raw.blockSize, "block-size", 0, "use this block(chunk) size when uploading/downloading to/from Azure Storage.")
968
+
cpCmd.PersistentFlags().StringVar(&raw.blobType, "blobType", "None", "defines the type of blob at the destination. This is used in case of upload / account to account copy")
941
969
cpCmd.PersistentFlags().StringVar(&raw.blockBlobTier, "block-blob-tier", "None", "upload block blob to Azure Storage using this blob tier.")
942
970
cpCmd.PersistentFlags().StringVar(&raw.pageBlobTier, "page-blob-tier", "None", "upload page blob to Azure Storage using this blob tier.")
943
971
cpCmd.PersistentFlags().StringVar(&raw.metadata, "metadata", "", "upload to Azure Storage with these key-value pairs as metadata.")
944
972
cpCmd.PersistentFlags().StringVar(&raw.contentType, "content-type", "", "specifies content type of the file. Implies no-guess-mime-type.")
945
973
cpCmd.PersistentFlags().StringVar(&raw.contentEncoding, "content-encoding", "", "upload to Azure Storage using this content encoding.")
946
-
cpCmd.PersistentFlags().BoolVar(&raw.noGuessMimeType, "no-guess-mime-type", false, "this sets the content-type based on the extension of the file.")
974
+
cpCmd.PersistentFlags().BoolVar(&raw.noGuessMimeType, "no-guess-mime-type", false, "prevents AzCopy from detecting the content-type based on the extension/content of the file.")
947
975
cpCmd.PersistentFlags().BoolVar(&raw.preserveLastModifiedTime, "preserve-last-modified-time", false, "only available when destination is file system.")
948
976
cpCmd.PersistentFlags().BoolVar(&raw.cancelFromStdin, "cancel-from-stdin", false, "true if user wants to cancel the process by passing 'cancel' "+
949
977
"to the standard input. This is mostly used when the application is spawned by another process.")
0 commit comments