ecp - extended copy


ecp foo bar
ecp foo
ecp foo


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.


-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

Will try to resume a broken download

Outputs some small information on ecp

Skips files of zero byte length

Don't overwrite or otherwise destroy already existing files

Outputs version information and exits

Print usage statement


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 /tmp Copies the file archive.tar.gz on a remote machine to /tmp
ecp Copies the file archive.tar.gz to current directory
ecp As above, but uses username and password to login
ecp archive.tar.gz Copies the local file archive.tar.gz to remote server
ecp --port 100 ./ Connects to remote ftp server running on port 100
ecp --resume ./ If server supports it, attempts to resume broken transfer


Andre Reffhaug