Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor corrections to text

...

  1. Getting Started and Downloading files
  2. Simple File Selection
  3. More Advanced File Selection
  4. File Transfer
  5. Checking files Files for completenessCompleteness
  6. Public / Private Key Authentication

...

Code Block
languagebash
[local_2_local_create_md5]
;;
 operation                 = copy
 file_spec                 = ^test_[0-9]\.txt$
;;
 CreateSecurityHashFile    = true
;;
 source_host               = localhost
 source_protocol           = local
 source_dir                = ${USERPROFILE}\jade_demo\a
;;
 target_host               = localhost
 target_protocol           = local
 target_dir                = ${USERPROFILE}\jade_demo\b

...

Code Block
languagebash
[local_2_local_check_md5]
;;
 operation                 = copy
 file_spec                 = ^test_[0-9]\.txt$
;;
 CheckSecurityHash         = true
;;
 source_host               = localhost
 source_protocol           = local
 source_dir                = ${USERPROFILE}\jade_demo\b
;;
 target_host               = localhost
 target_protocol           = local
 target_dir                = ${USERPROFILE}\jade_demo\b\checked

...

However, if any of the 'original' files in the source directory b has been corrupted (or if you have manipulated one or more of the files as suggested above) then an error will be thrown.

...

Example - Atomic File Transfer

The principle of atomic file transfer was described at the beginning of this article.

The local_2_local_atomic profile listed below is will carry out atomic file transfer from our test server to a local folder. As the transfer is likely to occur within one or two seconds it is unlikely that it will be possible for the functioning of the atomic transfer (i.e the removal of atomic prefix and suffixes) to be observed.

Code Block
languagebash
[sftp_server_2_local_atomic]
;;
 operation                    = copy
 file_spec                    = ^test_large_1\.txt$
;;
 atomic_prefix                = ~
 atomic_suffix                = ~
;;
 source_host                  = test.sos-berlin.com
 source_protocol              = sftp
 source_ssh_auth_method       = password
 source_port                  = 22
 source_user                  = demo
 source_password              = demo
 source_dir                   = /large/
;;
 target_host                  = localhost
 target_protocol              = local
 target_dir                   = ${USERPROFILE}\jade_demo\a

The Atomic transfer Transfer profile is started using:

...