Valid DTSCLI file filters include the following types:
When adding file filters, parcel filters may also be needed. To transfer a directory, file filters must now be added to the dtscli command. If you try to transfer a directory without adding the directory filter, you will get the following error message:
"Failed to open input data <c:\dtstemp> error=<Permission denied>".
Help for file filters is given by the 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: If using the longhand format, you must also apply parcel filters.
Example: Encrypt a File
The following example encrypts the file before it 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 © 2013 CA.
All rights reserved.
|
|