-a, --archive
Same as -dR --preserve=all.
An option of cpx.
Usage
cpx -a SOURCE... DIRECTORY
cpx --archive SOURCE... DIRECTORYDetails
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
-a | --archive | none | same as -dR --preserve=all |
Examples
Archive a directory tree, preserving modes, times and links
cpx -a project/ /mnt/backup/projectPreserve only the timestamps, or archive without carrying over ownership
cpx --preserve=timestamps photo.jpg archive/ && cpx -a --no-preserve=ownership project/ copy/Make a new release tree of hard links that share the old one's data
cpx -al releases/v1 releases/v2Back up a tree without crossing into other mounted file systems
cpx -ax --strip-trailing-slashes data/ /mnt/backup/dataHelp in the terminal
gnux help cpx --archive