ucp is a script that copies files or directories. It is an URL-enabled
version of the
cp system command. Via
ucp supports the following options:
Two or more URLs. If more than two URLs are given or the last URL refers to an existing directory, the last URL is the target directory. All other sources are copied into this target directory. Otherwise one file is copied to another file.
Give a report during the copy process about the files copied and their sizes.
Should the output be colored? If
autois specified (the default) then the output is colored if stdout is a terminal.
A user id or name. If given
ucpwill change the owner of the target files.
A group id or name. If given
ucpwill change the group of the target files.
Copies files recursively.
Ignores errors occuring during the copy process (otherwise the copy process is aborted).
Only copy files that match the pattern.
Don't copy files that match the pattern.
Only enter directories that match the pattern.
Skip directories that match the pattern.
Perform case-insensitive pattern matching.
Copy one file to another:
$ ucp foo.txt bar.txt
Copy a file into an existing directory:
$ ucp foo.txt dir/
Copy multiple files into a new or existing directory (and give a progress report):
$ ucp foo.txt bar.txt baz.txt dir/ -v ucp: foo.txt -> dir/foo.txt (1,114 bytes) ucp: bar.txt -> dir/bar.txt (2,916 bytes) ucp: baz.txt -> dir/baz.txt (35,812 bytes)
Recursively copy the schema objects in an Oracle database to a local directory:
ucp oracle://user:email@example.com/ db/ -r
Recursively copy the schema objects in an Oracle database to a remote directory:
ucp oracle://user:firstname.lastname@example.org/ ssh://email@example.com/~/db/ -r