Versions Compared

Key

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

...

  • On Unix you have to install a samba server.
    No Format
     In the following example a samba folder _tmp_ is configured with sufficient permissions to read and write files for a user _test_.
    
  • On Windows you have to release a folder with sufficient permissions to read and write files for a user test.
    No Format
     For example the release name of the released folder is _tmp_.
    

Example 1: copy files from local to samba share using cifs

Code Block
[local_source_host]
source_protocol = local
source_dir      = /tmp/test/jade/in

[samba_target_host]
target_protocol = smb
target_host     = my.host
target_user     = test
target_password = test
target_dir      = tmp

[copy_local2samba]
include         = local_source_host,samba_target_host
operation       = copy
file_spec       = \.txt$

The profile copy_local2samba copies all files which has the filename extension .txt' from the local folder/tmp/test/jade/into the folder_tmp_where_tmp_is either a windows released folder or a unix samba folder._
To execute this profile on the command line do:
_

Code Block
languagebash

jade.sh -settings=name-of-your-configuration-file -profile=copy_local2samba

_
h3. Example 2: copy files from sFtp Server to samba share using cifs
_

Code Block

 ...
[sftp_source_wilma.sos]
source_protocol = sftp
source_port=22
source_user=test
source_password=12345
source_ssh_auth_method=password

source_dir      = /tmp/test/jade/in

 ... 
 
[copy_sftp2samba]
include         = sftp_source_wilma.sos,samba_target_host
operation       = copy
file_spec       = \.txt$

_
The profile_copy_local2samba_copies all files which has the filename extension.txt' from the sftp server on wilma.sos from the folder /tmp/test/jade/in
to the folder tmp where tmp '' is either a windows released folder or a unix samba folder.

To execute this profile on the command line do:

Code Block
languagebash
jade.sh -settings=name-of-your-configuration-file -profile=copy_local2sambasftp2samba