|
FASTCopy and partial files problem
Question:
I am integrating FASTCopy into a production environment and need to ensure that only complete files that have been verified for integrity appear on the target production machine, which qualifiers should I use?
Answer:
FASTCopy provides two qualifiers that can be employed in such a scenario:
-temp_dir and -verify.
For example, the command:
fcopy E:\sample.txt \\localhost\E:\target\sample.txt -user="administrator" -password=xyzq23 -report -temp_dir=E:\receiving
generates the following report:
FCOPY-S-FILE_COPIED, file `E:\sample.txt' FASTCopied to file `\\localhost\E:\receiving\fc_22012003051447812' ( 364 Bytes )
Transfer started at : Wed Jan 22 00:14:47 2003
Transfer ended at : Wed Jan 22 00:14:47 2003
FCOPY-I-RENAME, temporary output file `E:\receiving\fc_22012003051447812' renamed to `E:\target\sample.txt'
The command sends the file sample.txt to the directory E:\receiving under a temporary unique name until it has been completely transferred. Once the transfer is complete, it will be "renamed" to its final location in E:\target_dir. If wildcards were used, each file transferred would initially be sent to the temporary directory, then renamed to its final location. For this reason, ensure that the temporary directory is on the same drive / partition as the final directory.
A second qualifier may be employed to verify the target file for integrity. Adding the -verify=\"sync,crc,compare\" qualifier will check the target file for complete integrity. Any inconsistencies will result in a failure of the file transfer. If "batch" mode is employed for automated recovery, the file will be corrected on the next recovery attempt.
Related Topics:
WINDOWS
UNIX
FASTCopy
Back to FAQ Index
|