copy files and mirror directories
Version: 0.9.06copy is a small utility that will copy files and mirror directories and has features not found in the standard "cp" program.
Operating System: Linux
copy < switches > from-path to-path
switches -a = default attributes for destination
- c = copy if file contents different
- d = delete "to" files if "from" not found
- h = help display
- n xxx = no overwrite of files with tail xxx
- s = copy if file sizes different
- t = copy if destination (to) file older
from-path = path to copy
to_path = destination for "from-path" files
copy has a simple interface that can perform some complex operations. It was designed to support rsync and mirroring of directories. It can detect copying identicial files and avoids updating destination. This leaves the file date unchanged.
Also, copy allows wild card (asterick) present in both the "from" and "to" file paths. This allows files to be renamed or selective files copied.
The default state is to copy files, but if the -t,-s, or -c switches are used, the
state changes to non-forced.