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
Copy file name to clipboardExpand all lines: articles/databox/data-box-disk-file-acls-preservation.md
+77-21Lines changed: 77 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Preserving file ACLs, attributes, and timestamps with Azure Data Box Disk
3
-
description: ACLs, timestamps, and attributes preserved during data copy to Azure Data Box. Copying metadata with Windows and Linux data copy tools.
3
+
description: ACLs, timestamps, and attributes preserved during data copy to Azure Data Box Disk. Copying metadata with Windows and Linux data copy tools.
4
4
services: databox
5
5
author: alkohli
6
6
@@ -13,7 +13,7 @@ ms.author: alkohli
13
13
14
14
# Preserving file ACLs, attributes, and timestamps with Azure Data Box Disk
15
15
16
-
Azure Data Box Disk lets you preserve access control lists (ACLs), timestamps, and file attributes when sending data to Azure. This article describes the metadata that you can transfer when copying data to Data Box to upload it to Azure Files.
16
+
Azure Data Box Disk lets you preserve access control lists (ACLs), timestamps, and file attributes when sending data to Azure. This article describes the metadata that you can transfer when copying data to Data Box Disk to upload it to Azure Files.
17
17
18
18
## Transferred metadata
19
19
@@ -27,36 +27,92 @@ The subsequent sections of the article discuss in detail as to how the timestamp
27
27
28
28
## ACLs
29
29
30
-
<!--ACLs DEFINITION
31
-
32
-
**Transfer methods.** Support for ACLs transfer during a data copy varies with the file transfer protocol or service that you use. There are also some differences when you use a Windows client vs. a Linux client for the data copy.
30
+
Depending on the transfer method used and whether you're using a Windows or Linux client, some or all discretionary and default access control lists (ACLs) on files and folders may be transferred during the data copy to Azure Files.
33
31
34
-
**Default ACLs.** Even if your data copy tool does not copy ACLs, in Windows, the default ACLs on directories and files are transferred to Azure Files. The default ACLs aren't transferred in Linux.
32
+
> [!NOTE]
33
+
> Files with ACLs containing conditional access control entry (ACE) strings are not copied. This is a known issue. To work around this, copy these files to the Azure Files share manually by mounting the share and then using a copy tool that supports copying ACLs.
35
34
36
-
The default ACLs have permissions for the built-in Administrator account, the SYSTEM account, and the SMB share user account that was used to mount and copy data in the Data Box.
35
+
## Copying data and metadata
37
36
38
-
The ACLs contain security descriptors with the following properties: ACLs, Owner, Group, SACL.
39
-
-->
37
+
To transfer the ACLs, timestamps, and attributes for your data, use the following procedures to copy data into the Data Box.
38
+
39
+
### Windows data copy tool
40
+
41
+
To copy data to your Data Box via SMB, use an SMB-compatible file copy tool such as `robocopy`. The following sample command copies all files and directories, transferring metadata along with the data.
|`/e`|Copies subdirectories, including empty directories. |
53
+
|`/dcopy:DAT`|Copies data, attributes, and timestamps. Note: The /dcopy:DAT option must be used to transfer `CreationTime` on directories. |
54
+
|`/B`|Copies files in Backup mode. |
55
+
|`/r:3`|Specifies 3 retries on failed copies. |
56
+
|`/w:60`|Specifies a wait time of 60 seconds between retries. |
57
+
|`/is`|Includes the same files. |
58
+
|`/nfl`|Does not log file names. |
59
+
|`/ndl`|Does not log directory names. |
60
+
|`/np`|Does not display progress of the copying operation. |
61
+
|`/MT:32 or 64`|Uses multithreading, with 32 or 64 threads. |
62
+
|`/fft`|Reduces time stamp granularity for any file system. |
63
+
|`/log+:<LogFile>`|Appends the output to the existing log file.|
64
+
65
+
For more information on these `robocopy` parameters, see [Tutorial: Copy data to Azure Data Box via SMB](./data-box-deploy-copy-data.md)
40
66
41
-
Depending on the transfer method used and whether you're using a Windows or Linux client, some or all discretionary and default access control lists (ACLs) on files and folders may be transferred during the data copy to Azure Files.
42
-
43
67
> [!NOTE]
44
-
> Files with ACLs containing conditional access control entry (ACE) strings are not copied. This is a known issue. To work around this, copy these files to the Azure Files share manually by mounting the share and then using a copy tool that supports copying ACLs.
68
+
> If you use `/copyall` to copy your data, the source ACLs on directories and files are transferred to Azure Files. If you only had read-access on your source data and could not modify the source data, you'll have read-access only on the data in the Data Box Disk. Use `/copyall` only if you intend to copy all the ACLs on the directories and files along with the data.
69
+
70
+
#### Use robocopy to list, copy, modify files on Data Box Disk
71
+
72
+
Here are some of the common scenarios you'll use when copying data using `robocopy`.
73
+
74
+
-**Copy only data to Data Box Disk, no ACLs on directories and files**
75
+
76
+
Use the `/dcopy:DAT` option to only copy data, attributes, timestamps. ACLs on directories and files are not copied.
77
+
78
+
-**Copy data and ACLs on directories and files to Data Box Disk**
79
+
80
+
Use `/copyall` to copy all the source data including all the ACLs on directories and files.
81
+
82
+
-**List the filesystem on Data Box Disk using robocopy**
In the above command, the `<source-dir>` should not have the file: `<file-name>`. Then, the above command syncs the destination with the source, resulting in the removal of the file from the destination.
45
101
46
-
### Default ACLs transfer
102
+
Note that the File Explorer may not allow you to perform the above operations.
47
103
48
-
Even if your data copy tool doesn't copy ACLs, the default ACLs on directories and files are transferred to Azure Files when you use a Windows client. The default ACLs aren't transferred when you use a Linux client.
104
+
For more information, see [Using robocopy commands](/windows-server/administration/windows-commands/robocopy).
49
105
50
-
The following default ACLs are transferred:
106
+
### Linux data copy tools
51
107
52
-
- Account permissions:
53
-
- Built-in Administrator account
54
-
- SYSTEM account
55
-
- SMB share user account used to mount and copy data in the Data Box
108
+
Transferring metadata in Linux is a two-step process. First, you copy the source data using a tool such as `rsync`, which does not copy metadata. After you copy the data, you can copy the metadata using a tool such as `smbcacls` or `cifsacl`.
56
109
57
-
- Security descriptors with these properties: DACL, Owner, Group, SACL
110
+
The following sample commands do the first step, copying the data using `rsync`.
0 commit comments