--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... DIRECTORYDetails
| Short | Long | Value | Default | Meaning |
|---|---|---|---|---|
--backup | CONTROL (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.confHelp in the terminal
gnux help cpx --backup