Skip to Content
gnux

--backup

Make a backup of each existing destination file; CONTROL is none (off), simple (never), existing (nil) or numbered (t).

An option of cpx.

Usage

cpx --backup[=CONTROL] SOURCE... DIRECTORY

Details

ShortLongValueDefaultMeaning
--backupCONTROL (optional)make a backup of each existing destination file; CONTROL is none (off), simple (never), existing (nil) or numbered (t)

Examples

Keep every earlier version of a deployed file as app.conf.1, app.conf.2, ...

cpx --backup=numbered build/app.conf /etc/app/app.conf

Help in the terminal

gnux help cpx --backup

On this page