| ascp4: Transferring from the Command Line with Ascp 4 |
149
--mode={send|recv}
Transfer in the specified direction:
send
or
recv
(receive). Requires
--host
.
-N
pattern
Protect ("include") files or directories from exclusion by any
-E
(exclude) options that follow
it. Files and directories are specified using
pattern
. Each option-plus-pattern is a
rule
. Rules are
applied in the order (left to right) in which they're encountered. Thus,
-N
rules protect files only
from
-E
rules that follow them. Create patterns using standard globbing wildcards and special
characters such as the following:
•
*
(asterisk) represents zero or more characters in a string, for example
*.tmp
matches
.tmp
and
abcde.tmp
.
•
?
(question mark) represents any single character, for example
t?p
matches
tmp
but not
temp
.
For details on specifying patterns and rules, including examples, see
on page 126.
Note:
Filtering rules can also be specified in
aspera.conf
. Rules found in
aspera.conf
are
applied
before
any
-E
and
-N
rules specified on the command line.
--no-open
In test mode, do not actually open or write the contents of destination files.
--no-read
In test mode, do not read the contents of source files.
--no-write
In test mode, do not write the contents of destination files.
-O
fasp_port
Use the specified UDP port for FASP transfers. Default: 33001.
--overwrite={always|never|diff|diff+older|older}
Overwrite files at the destination with source files of the same name based on the
method
. Default:
always
. Use with
--compare
and
--resume
.
method
can be the following:
•
always
– Always overwrite the file.
•
never
– Never overwrite the file. If the destination contains partial files that are older or the
same as the source files and
--resume
is enabled, the partial files resume transfer. Partial files
with checksums or sizes that differ from the source files are not overwritten.
•
diff
– Overwrite the file if it is different from the source, depending on the
compare
method
(default is
size
). If the destination is object storage,
diff
has the same effect as
always
.
If
resume
is not enabled, partial files are overwritten if they are different from the source,
otherwise they are skipped. If
resume
is enabled, only partial files with different sizes or
checksums from the source are overwritten; otherwise, files resume.
•
diff+older
– Overwrite the file if it is older and different from the source, depending on the
compare
method (default is
size
). If
resume
is not enabled, partial files are overwritten if
they are older and different from the source, otherwise they are skipped. If
resume
is enabled,
only partial files that are different and older than the source are overwritten, otherwise they are
resumed.
•
older
– Overwrite the file if its timestamp is older than the source timestamp.
-P
ssh-port
Use the specified TCP port to initiate the FASP session. (Default: 22)
-p
Preserve file timestamps for access and modification time. Equivalent to setting
--preserve-
modification-time
,
--preserve-access-time
, and
--preserve-creation-