Windows Agent - File Transfer Support
When defining a FileTransfer object, you can also specify additional details in the FileTransfer field.
These details can be file attributes of the operating system or additional options which are only evaluated by the agent. Note that several attributes and options need to be separated with commas.
Windows File Attributes
File attributes can be specified for the file transfer's destination.
You can also override the original attributes. This means that even if the option Keep original attributes has been activated, the attributes that should be passed on to the target should be overwritten (e.g., setting a read-only permission for all destination files).
The value "YES" sets an attribute, "NO" removes it.
Example: ARCHIVE=YES, HIDDEN=NO
Attribute | Description |
---|---|
ARCHIVE | Archive (file has changed since the last backup was made) |
COMPRESSED | Compressed file |
ENCRYPTED | Encrypted file |
HIDDEN | Hidden file |
READONLY | File is read only |
SYSTEM | System file |
Additional Options
You can specify particular options in addition to the operating system's file attributes in the File attributes field. They affect the formatting of the file content, but are not file attributes. These options are also available for UNIX agents.
Options for the sender's file attributes
- reclen - record length specified in bytes.
- nl=mixed - a CR character used at the end of a text file's line can corrupt the file in some systems. The value "mixed" automatically removes this character.
Options for the receiver's file attributes
- nl character for inserting line separation.
Allowed values: "crlf", "lf" (default) and "none"
"crlf" - carriage return and line feed.
"lf" - line feed.
"none" - no line break.
Example: nl=crlf