scp [options] source destination
where source and destination can each take the form:
[hostname:][dir-path][filespec]
or
[ip-addr:][dir-path][filespec]
The [ ] indicates something is optional.
|
-p
|
Preserves modification times, access times, and modes from the original file.
|
|
-r
|
Recursively copy entire directories.
|
For example, if you want to copy all txt files,
scp -p *.txt 192.168.1.100:
scp -rp ROOT user@host:/tmp