Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Example: Using UNC Names with JADE I:

Code Blocknoformat
 [Copy_Local2Local_UNC]
 source_protocolprotocolh1. = local
 source_dir = //8of9.sos/c/temp
 
No Format
 target_dir =dirh1. //r2d2.sos/share/nobackup/junittests/testdata/JADE
 target_protocol = local
No Format
 
 log_filename =filenameh1. $\{TEMP\}/test.log
 file_spec = ^.*\.(txt|dot)$
 operation =operationh1. copy
 remove_files = false

This is a profile (section) of a configuration file. Just start with

Code Blocknoformat
 jade.cmd -settings=settingh1. settings-file-name -profile=CopyprofileCopy_Local2Local_UNC

All Files in the folder "//8of9.sos/c/temp" (source folder) with txt or dot file name extentions (specified with file_spec parameter) will be transferred (copied) to the "//r2d2.sos/share/nobackup/junittests/testdata/JADE" target folder. This is a local operation and therefore a (s)FTP(S) server is not needed. "file_spec" is not like a wildcard, it is a regular expression.

...

Server to server transfer, from sftp to ftp without touchdown:

Code Blocknoformat
 [ftp_server_2_server]
 ssh_auth_method=methoh1. password
 
No Format
 source_user=kbuserkb
 source_password=passworh1. *****
 source_ssh_auth_method=passwordmethodpassword
 source_host=hosh1. wilma.sos
 source_protocol=sftpprotocolsftp
 source_port=porh1. 22
 
No Format
 target_user=testusertest
 target_password=passworh1. *****
 target_host=8of9host8of9.sos
 target_protocol=protocoh1. ftp
 target_port=21
 port21
No Format
 file_path=path1. test.txt
 operationcopy
No Format
operation=copy
 
 log_filename=filenamh1. $\{TEMP\}/sosftphistory.log

...

Note that it is possible to define the "net use" or any other os command directly in the profile:

Code Blocknoformat
 [Copy_Local2Local_UNC_withNetUse]
 include=CopyincludeCopy_Local2Local_UNC
 preTransferCommands=net use //8of9.sos/c;net use //r2d2.sos/share

...