Hi

 

In TAR documentation it states that -keep-old-files (-k) will flag an
error if a file already exists :

 

To be even more cautious and prevent existing files from being replaced,

use the '--keep-old-files' ('-k') option. It causes tar to refuse to
replace

or update a file that already exists, i.e., a file with the same name as
an

archive member prevents extraction of that archive member. Instead, it

reports an error.

 

How ever, neither a warning message or exit code indicates that such an
error occurred.

 

Cheers

 

Gary Partis

 

Reply via email to