-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.template.yaml
110 lines (105 loc) · 3.52 KB
/
config.template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
general:
tempfolder: c:\temp
# Defined a list of downloaders.
# Each downloader downloads from one server to a local folder.
# Source file downloaded will be removed from sftp server
# The source specify the server name used in the
# servers section.
downloaders:
- name: localtest1
source: server1
# do not start with ./
sourcepath: for-download1
targetpath: C:\Users\Downloads\ugoku-output1
worker: 1
# maximum timeout in seconds for downloading one file, if not defined default to 600s
maxtimeout: 600
# estimated throughput in Mbps (megabits/second), for calculating dynamic throughput
# app will use smaller value of the two: max timeout and calculated value
# if not defined, default is 10Mbps
throughput: 10
enabled: true
- name: localtest2
source: server2
# do not start with ./
sourcepath: for-download2
targetpath: C:\Users\Downloads\ugoku-output2
worker: 1
# maximum timeout in seconds for downloading one file, if not defined default to 600s
maxtimeout: 600
# estimated throughput in Mbps (megabits/second), for calculating dynamic throughput
# app will use smaller value of the two: max timeout and calculated value
# if not defined, default is 10Mbps
throughput: 10
enabled: false
# Each uploader uploads from a local folder (could be nested)
# to a server, mirroring the folder structure.
# Source file uploaded will be removed from local folder
# The target specify the server name used in the servers section
uploaders:
- name: uploader1
target: server1
sourcepath: C:\Users\Downloads\ugoku\input
# do not start with ./
targetpath: for-upload
worker: 1
# maximum timeout in seconds for uploading one file, if not defined default to 600s
maxtimeout: 600
# estimated throughput in Mbps (megabits/second), for calculating dynamic throughput
# app will use smaller value of the two: max timeout and calculated value
# if not defined, default is 50Mbps
throughput: 10
enabled: true
# Each syncer sync from a source to a target,
# without remove source files, unlike downloader/uploader.
# It can sync from serve to local or local to server.
# Two way sync is planned for as well
syncers:
- name: synctest
server: server1
serverpath: for-sync
localpath: C:\Users\Downloads\ugoku\sync
# mode can one of these, default to server
# - server: sync from server to local only
# - local: sync from local to server only
# - twoway: sync both way
mode: server
# scan interval in seconds
sleepinterval: 10
worker: 1
enabled: true
# Streamer streams files from source sftp server to another
# sftp server, with ugoku as the bridge, without writing
# any file locally. That is is to say this is not a store and
# forward mechanism.
streamers:
- name: streamtest
source: server1
sourcepath: for-stream-in
target: server2
targetpath: for-stream-out
sleepinterval: 60
worker: 1
enabled: true
# each server is a unique combination of
# ip, user, and password
# you need another server config for another user
# even its for the same ip
servers:
- name: server1
ip: 192.168.1.1
port: 22
user: user
password: Password
# key file to use, if both key file and
# password defined, key file will be used
keyfile: path/to/key/file
# for cert based auth
# both cert and key file must be defined
cerfile: path/to/cert/file
- name: server2
ip: 192.168.1.2
port: 22
user: user
password: Password
keyfile: path/to/cert/file