Skip to Content
gnux

-u, --update

Control which existing files are updated: all, none, or older (the default for -u).

An option of cpx.

Usage

cpx -u SOURCE... DIRECTORY
cpx --update[=string] SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
-u--updatestring (optional)control which existing files are updated: all, none, or older (the default for -u)

Examples

Update a mirror, copying only files that are newer

cpx -ru src/. mirror/

Add missing default files without overwriting customized ones

cpx -r --update=none defaults/. config/

Help in the terminal

gnux help cpx --update

On this page