ECP

NAME

ecp - extended copy

SYNOPSIS

ecp [OPTIONS] SOURCE(s) DESTINATION
ecp foo bar
ecp ftp://user:password@ftp.someserver.com/directory/file foo
ecp foo ftp://user:password@ftp.someserver.com/directory/file

DESCRIPTION


ecp is intended to be an extended version (extended cp) of the GNU coreutils cp.
What it does do is the following:
 - display progress indication as it copies (on a per file basis)
 - copy to and from ftps (only single files at the moment)
 - works like mv with the proper command line switches enabled
The idea behind ecp is that wget, scp and cp can efficiently be combined into one program, unifying the syntax and usage of them all.

OPTIONS

-R, --recursive
Copies files/folder recursively

-p, --preserve
Preserves access and modification times

-t, --total
Displays total progress, rather than progress per file

-n, --no-hidden-files
Omits hidden files when copying

-c, --create
Creates target directory if it does not exist

-s, --d-sysms
Dereferences symlinks

-k, --kill
Removes SOURCE after copying (use with caution)

-q, --quiet
No information to stdout

-u, --update
Only copies if SOURCE is newer or modified (semi functional)

-h, --human-readable
Output is formatted for humans

-v, --verbose
Output more information than usual

--port [number]
Specifies port number for ftp

--resume
Will try to resume a broken download

--information
Outputs some small information on ecp

--no-zero-bytes
Skips files of zero byte length

--no-clobber
Don't overwrite or otherwise destroy already existing files

--version
Outputs version information and exits

--help
Print usage statement

EXAMPLES

ecp foo /tmp/bar Will copy the file 'foo' to /tmp/bar
ecp -R /tmp/e* ./ Will recursively copy all the files in /tmp that begin with the letter e to the current directory.
ecp -k foo bar Moves the file foo to bar. Analogous to 'mv foo bar'
ecp ftp://foo.org/downloads/archive.tar.gz /tmp Copies the file archive.tar.gz on a remote machine to /tmp
ecp ftp://foo.org/downloads/archive.tar.gz Copies the file archive.tar.gz to current directory
ecp ftp://username:password@foo.org/downloads/archive.tar.gz As above, but uses username and password to login
ecp archive.tar.gz ftp://foo.org/uploads Copies the local file archive.tar.gz to remote server
ecp --port 100 ftp://foo.org/download/archive.tar.gz ./ Connects to remote ftp server running on port 100
ecp --resume ftp://foo.org/download/archive.tar.gz ./ If server supports it, attempts to resume broken transfer

AUTHOR

Andre Reffhaug