8.5. Archiving File Systems With ACLs

WarningWarning
 

The tar and dump commands do not backup ACLs.

The star utility is similar to the tar utility in that it can be used to generate archives of files; however, some of its options are different. Refer to Table 8-1 for a listing of more commonly used options. For all available options, refer to the star man page. The star package is required to use this utility.

OptionDescription
-cCreates an archive file.
-nDo not extract the files; use in conjunction with -x to show what extracting the files does.
-rReplaces files in the archive. The files are written to the end of the archive file, replacing any files with the same path and file name.
-tDisplays the contents of the archive file.
-uUpdates the archive file. The files are written to the end of the archive if they do not exist in the archive or if the files are newer than the files of the same name in the archive. This option only work if the archive is a file or an unblocked tape that may backspace.
-xExtracts the files from the archive. If used with -U and a file in the archive is older than the corresponding file on the file system, the file is not extracted.
-helpDisplays the most important options.
-xhelpDisplays the least important options.
-/Do not strip leading slashes from file names when extracting the files from an archive. By default, they are striped when files are extracted.
-aclWhen creating or extracting, archive or restore any ACLs associated with the files and directories.

Table 8-1. Command Line Options for star