Skip to Content
gnux

-a, --archive

Same as -dR --preserve=all.

An option of cpx.

Usage

cpx -a SOURCE... DIRECTORY
cpx --archive SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
-a--archivenonesame as -dR --preserve=all

Examples

cpx -a project/ /mnt/backup/project

Preserve only the timestamps, or archive without carrying over ownership

cpx --preserve=timestamps photo.jpg archive/ && cpx -a --no-preserve=ownership project/ copy/
cpx -al releases/v1 releases/v2

Back up a tree without crossing into other mounted file systems

cpx -ax --strip-trailing-slashes data/ /mnt/backup/data

Help in the terminal

gnux help cpx --archive

On this page