Valid DTSCLI file filters types:
When adding file filters, parcel filters may also be needed. To transfer a directory, file filters must be added to the dtscli command. If you try to transfer a directory without adding the directory filter, you get the following error message:
"Failed to open input data <c:\dtstemp> error=<Permission denied>".
Help for file filters command:
dtscli -help agent f_filters
Example: Transfer a Directory
dtscli -agent ipath=Gold::c:\dtstemp
"rpath=Silver::c:\dtstemp" "f_filters=dir"
dtscli -agent "ipath=Gold::c:\dtstemp"
"rpath=Silver::c:\dtstemp" "f_filters=DIRTREE_READ:DIRTREE_WRITE" "p_filters=binary"
Note: When using the long format, also apply parcel filters.
Example: Encrypt a File
Encrypt the file before sending it to the responder:
dtscli -agent "ipath=Gold::c:\dtstemp"
"rpath=Silver::c:\dtstemp" "f_filters=PLAIN_ENCRYPT_FILE(ENDEC_KEY=key):PLAIN_DECRYPT_FILE()" "p_filters=binary"
Example: Apply Attributes of Original File to Transferred File
The use of the file attribute filter forces the transferred file to have the same attributes as the original.
dtscli -agent "ipath=Gold::c:\dtstemp\file.src"
"rpath=Silver::c:\dtstemp\file.dest" "f_filters=fattr" "p_filters=binary'
dtscli -agent "ipath=Gold::c:\dtstemp\file.src"
"rpath=Silver::c:\dtstemp\file.dest" "f_filters=FILE_ATTRIBUTE:" "p_filters=binary"
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|