...
Code Block |
---|
[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
...
Code Block |
---|
[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 |
...
You can also set
Code Block |
---|
file_path = 1.txt;../out2/1.txt source_dir = /jade/out/ |
or
Code Block |
---|
file_path = out/1.txt;out2/1.txt source_dir = /jade/ |
instead of the above setting
Code Block |
---|
file_path = /jade/out/1.txt;/jade/out2/1.txt
|
...
Code Block |
---|
[filespec] include = copy_webdav2local source_dir = /jade/out file_spec = \.txt$ [recursive] include = copy_webdav2local source_dir = /jade/out file_spec = \.txt$ recursive = true |
Example: transfer from local file system to WebDAV server
...
Code Block |
---|
[local_source_host] source_protocol = local [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 target_dir = /jade/in [copy_local2webdav] include = webdav_target_host,local_source_host operation = copy |
The profile copy_local2webdav will be included in further profiles
...
Code Block |
---|
[filepath] include = copy_local2webdav file_path = /tmp/test/jade/in/1.txt |
...
Code Block |
---|
[filespec] include = copy_local2webdav source_dir = /tmp/test/jade/out file_spec = \.txt$ [recursive] include = copy_local2webdav source_dir = /tmp/test/jade/out file_spec = \.txt$ recursive = true |
Example
...
with file_spec behind a Proxy
First we make a global profiles for the proxy parameter.
Code Block |
---|
[webdav_target_proxy] target_proxy_host = proxy.sos target_proxy_port = 3128 #optional #proxy#target_proxy_user = #proxy#target_proxy_password = |
The profile webdav_target_proxy will be included in other profiles likeabove file_spec profile
Code Block |
---|
[filespec_with_proxy] include = copy_local2webdav, webdav_target_proxy source_dir = /tmp/test/jade/out file_spec = \.txt$ |
and so you have the above example with file_spec and example with proxy