install-mimic — overwrite files preserving the destination's ownership and access mode
Contents
Description
The install-mimic utility copies the specified files to the specified destination (file or directory)
similarly to install(1), but it preserves the ownership and access mode of the destination files. This
is useful when updating files that have already been installed with locally modified copies that may be
owned by the current user and not by the desired owner of the destination file (e.g. root).
Options:
-h Display program usage information and exit.
-r Specify a file to obtain the ownership and access information from; useful when installing a new
file that should be similar to other files in the same location.
-V Display program version information and exit.
-v Verbose operation; display diagnostic output.
Environment
The install-mimic utility's operation is currently not directly affected by its environment.
Examples
Overwrite a system file with a local copy:
install-mimic./install-mimic.pl/usr/bin/install-mimic
Overwrite several files with local copies with the same name:
install-mimiccinder/*.py/usr/lib/python2.7/dist-packages/cinder/
Install a new file similar to a system file:
install-mimic-v-r/usr/bin/install-mimicinstall-none/usr/bin/Files
The install-mimic utility's operation is currently not directly affected by any files.
History
The install-mimic utility was written by Peter Pentchev in 2015.
Name
install-mimic — overwrite files preserving the destination's ownership and access mode
Return Values
The install-mimic utility exits 0 on success, and >0 if an error occurs.
Synopsis
install-mimic [-v] [-rreffile] srcfiledstfileinstall-mimic [-v] [-rreffile] file1 [file2...] directoryinstall-mimic-V | -h
