In Windows Server 2003, in the "Attributes" column of windows explorer, some files have "A" or "C" or "AC" or others. What do these mean?
9 Answers
Prior to windows 8/10 the attributes were:
R = READONLY
H = HIDDEN
S = SYSTEM
A = ARCHIVE
C = COMPRESSED
N = NOT INDEXED
L = Reparse Points
O = OFFLINE
P = Sparse File
I = Not content indexed
T = TEMPORARY
E = ENCRYPTED
You should pay special attention to the offline attribute because it may affect the behavior of your backup software. Files with the O attribute may be skipped entirely because the software may assume they are stored elsewhere.
Consider these answers on SO and SF for additional information:
https://superuser.com/questions/44812/windows-explorers-file-attribute-column-values
- 2,394
- 9,194
You can manipulate attributes (set/unset) with the attrib command.
Open a cmd.exe prompt with win+r and then type;
hide a folder:
> attrib +h +s C:\Test\Testing
unhide:
> attrib -h -s C:\Test\Testing
- 308
- 1
- 13
- 21
- 1
When Windows 7 "Backup and Restore" creates a "system image," it puts it in a root-level folder named WindowsImageBackup, which has the "I" attribute. Windows 7's "help attrib" command says:
C:\>help attrib
Displays or changes file attributes.
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [+I | -I]
[drive:][path][filename] [/S [/D] [/L]]
+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
I Not content indexed file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.
/L Work on the attributes of the Symbolic Link versus
the target of the Symbolic Link
- 181
D is missing from the above list so in case you're wondering like I was, D stands for "Directory." It's probably not included because the question focused on files, not directories, but I found this question in a search and had to continue my search to find out what D was, so, as a convenience to future readers, I added this answer.
Here's the link to the answer that included D:
- 11
Others are as follows;
H = Hidden
S = System File
R = Read Only
AHS and R can be set by the user or system, as user you can use the 'attrib' command to add/remove attributes. C is a system only attribute.
To find out more about the attrib command goto a command window and type 'attrib /?'
- 395
Backup software can clear the archive bit which is set when a file is modified. That way, it can be used to do incremental backups in order to skip over files that have already been backed up.
Since it can be set and unset at will, it's not necessarily the most reliable method and I think most backup software uses more sophisticated criteria for determining what to include in an incremental backup.
- 64,083
The A bit only shows up when you have backup software that sets it to indicate that file has been archived. When a user makes changes to a file, the operating system clears the archive bit, to indicate to the backup software that if it's doing an incremental or differential backup, it needs to backup that changed file and reset the A bit. Incremental backups reset the archive bit, so that the next incremental will only backup newly changed files. Differential backups do NOT reset the archive bit, so every differential backup grabs all the files that have changed since the previous full backup. So, to restore a system on Friday, an administrator would need the weekly backup from sunday and either the latest differential, or ALL the daily incrementals.