tar: Keep Old Files
1
1 Keep Old Files
1 ..............
1
1 GNU 'tar' provides two options to control its actions in a situation
1 when it is about to extract a file which already exists on disk.
1
1 '--keep-old-files'
1 '-k'
1 Do not replace existing files from archive. When such a file is
1 encountered, 'tar' issues an error message. Upon end of
1 extraction, 'tar' exits with code 2 (⇒exit status).
1
1 '--skip-old-files'
1 Do not replace existing files from archive, but do not treat that
1 as error. Such files are silently skipped and do not affect 'tar'
1 exit status.
1
1 Additional verbosity can be obtained using
11 '--warning=existing-file' together with that option (⇒
warnings).
1