You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Example: transfer from WebDAV server to local file system:

First we make some global profiles for WebDAV to local transfer.

[local_target_host]
target_protocol=local
target_dir = /tmp/test/jade/in

[webdav_source_host]
source_protocol=webdav
source_host=http://homer.sos/jade
source_port=80
source_user=test
source_password=12345
source_ssh_auth_method=url

[copy_webdav2local]
include = webdav_source_host,local_target_host
operation = copy

The profile copy_webdav2local will be included in further profiles

Example with file_path

In the file_path you can enter a list of source files. These files must have absolute paths from the viewpoint of the WebDAV server.
In this example we have two files with the same name. After the transfer into the target directory they are only one file /tmp/test/jade/in/1.txt.
Here we have three profiles with different behaviour

[filepath_append]
include = copy_webdav2local
file_path = /jade/out/1.txt;/jade/out2/1.txt
append_files = true 


[filepath_no_overwrite]
include = copy_webdav2local
file_path = /jade/out/1.txt;/jade/out2/1.txt
overwrite_files = false


[filepath_overwrite]
include = copy_webdav2local
file_path = /jade/out/1.txt;/jade/out2/1.txt

In the first example filepath_append the target file has the content of both source files.
In the second example filepath_no_overwrite the target file has the content of the first source files (/jade/out/1.txt).
In the third example filepath_overwrite the target file has the content of the second source files (/jade/out2/1.txt).

Example with file_path

Example: transfer from local file system to WebDAV server

First we make some global profiles for local to WebDAV transfer.

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

[webdav_target_host]
target_protocol=webdav
target_host=http://homer.sos/jade
target_port=80
target_user=test
target_password=12345
target_ssh_auth_method=url

[copy_local2webdav]
include = webdav_target_host,local_source_host
operation = copy

The profile copy_local2webdav will be included in further profiles
...IN PROGRESS...

  • No labels