aspera-cli 4.24.1 → 4.25.0.pre

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/CHANGELOG.md +1064 -745
  4. data/CONTRIBUTING.md +43 -100
  5. data/README.md +1281 -720
  6. data/bin/ascli +20 -1
  7. data/bin/asession +23 -27
  8. data/lib/aspera/agent/base.rb +10 -21
  9. data/lib/aspera/agent/connect.rb +2 -3
  10. data/lib/aspera/agent/desktop.rb +2 -2
  11. data/lib/aspera/agent/direct.rb +49 -32
  12. data/lib/aspera/agent/factory.rb +31 -0
  13. data/lib/aspera/api/aoc.rb +134 -76
  14. data/lib/aspera/api/cos_node.rb +3 -2
  15. data/lib/aspera/api/faspex.rb +213 -0
  16. data/lib/aspera/api/node.rb +107 -94
  17. data/lib/aspera/ascmd.rb +1 -2
  18. data/lib/aspera/ascp/installation.rb +73 -58
  19. data/lib/aspera/ascp/management.rb +119 -23
  20. data/lib/aspera/assert.rb +39 -11
  21. data/lib/aspera/cli/error.rb +4 -2
  22. data/lib/aspera/cli/extended_value.rb +91 -67
  23. data/lib/aspera/cli/formatter.rb +62 -27
  24. data/lib/aspera/cli/hints.rb +8 -0
  25. data/lib/aspera/cli/info.rb +4 -4
  26. data/lib/aspera/cli/main.rb +76 -84
  27. data/lib/aspera/cli/manager.rb +352 -248
  28. data/lib/aspera/cli/plugins/alee.rb +5 -4
  29. data/lib/aspera/cli/plugins/aoc.rb +175 -195
  30. data/lib/aspera/cli/plugins/ats.rb +4 -4
  31. data/lib/aspera/cli/plugins/base.rb +343 -0
  32. data/lib/aspera/cli/plugins/basic_auth.rb +45 -0
  33. data/lib/aspera/cli/plugins/config.rb +283 -269
  34. data/lib/aspera/cli/plugins/console.rb +27 -22
  35. data/lib/aspera/cli/plugins/cos.rb +3 -3
  36. data/lib/aspera/cli/plugins/factory.rb +78 -0
  37. data/lib/aspera/cli/plugins/faspex.rb +49 -46
  38. data/lib/aspera/cli/plugins/faspex5.rb +113 -225
  39. data/lib/aspera/cli/plugins/faspio.rb +19 -18
  40. data/lib/aspera/cli/plugins/httpgw.rb +14 -13
  41. data/lib/aspera/cli/plugins/node.rb +162 -149
  42. data/lib/aspera/cli/plugins/oauth.rb +48 -0
  43. data/lib/aspera/cli/plugins/orchestrator.rb +129 -45
  44. data/lib/aspera/cli/plugins/preview.rb +30 -50
  45. data/lib/aspera/cli/plugins/server.rb +21 -21
  46. data/lib/aspera/cli/plugins/shares.rb +45 -47
  47. data/lib/aspera/cli/sync_actions.rb +50 -39
  48. data/lib/aspera/cli/transfer_agent.rb +35 -49
  49. data/lib/aspera/cli/transfer_progress.rb +6 -6
  50. data/lib/aspera/cli/version.rb +3 -3
  51. data/lib/aspera/cli/wizard.rb +70 -55
  52. data/lib/aspera/colors.rb +6 -0
  53. data/lib/aspera/command_line_builder.rb +59 -61
  54. data/lib/aspera/command_line_converter.rb +2 -1
  55. data/lib/aspera/coverage.rb +2 -2
  56. data/lib/aspera/data_repository.rb +1 -1
  57. data/lib/aspera/environment.rb +51 -41
  58. data/lib/aspera/faspex_gw.rb +7 -5
  59. data/lib/aspera/faspex_postproc.rb +1 -1
  60. data/lib/aspera/keychain/factory.rb +1 -2
  61. data/lib/aspera/keychain/macos_security.rb +1 -1
  62. data/lib/aspera/log.rb +37 -9
  63. data/lib/aspera/markdown.rb +31 -0
  64. data/lib/aspera/nagios.rb +7 -6
  65. data/lib/aspera/oauth/base.rb +25 -28
  66. data/lib/aspera/oauth/factory.rb +9 -9
  67. data/lib/aspera/oauth/url_json.rb +2 -1
  68. data/lib/aspera/oauth/web.rb +2 -2
  69. data/lib/aspera/preview/file_types.rb +23 -37
  70. data/lib/aspera/products/connect.rb +7 -6
  71. data/lib/aspera/products/desktop.rb +1 -4
  72. data/lib/aspera/products/other.rb +9 -1
  73. data/lib/aspera/products/transferd.rb +0 -1
  74. data/lib/aspera/rest.rb +168 -113
  75. data/lib/aspera/rest_error_analyzer.rb +4 -4
  76. data/lib/aspera/ssh.rb +7 -4
  77. data/lib/aspera/ssl.rb +41 -0
  78. data/lib/aspera/sync/args.schema.yaml +46 -3
  79. data/lib/aspera/sync/conf.schema.yaml +307 -123
  80. data/lib/aspera/sync/database.rb +2 -1
  81. data/lib/aspera/sync/operations.rb +135 -79
  82. data/lib/aspera/temp_file_manager.rb +17 -5
  83. data/lib/aspera/transfer/error.rb +16 -7
  84. data/lib/aspera/transfer/parameters.rb +35 -22
  85. data/lib/aspera/transfer/resumer.rb +74 -0
  86. data/lib/aspera/transfer/spec.rb +5 -5
  87. data/lib/aspera/transfer/spec.schema.yaml +170 -59
  88. data/lib/aspera/transfer/spec_doc.rb +49 -43
  89. data/lib/aspera/uri_reader.rb +2 -2
  90. data/lib/aspera/web_auth.rb +6 -6
  91. data/lib/transferd_pb.rb +2 -2
  92. data.tar.gz.sig +0 -0
  93. metadata +26 -11
  94. metadata.gz.sig +0 -0
  95. data/lib/aspera/cli/basic_auth_plugin.rb +0 -43
  96. data/lib/aspera/cli/plugin.rb +0 -333
  97. data/lib/aspera/cli/plugin_factory.rb +0 -81
  98. data/lib/aspera/resumer.rb +0 -77
  99. data/lib/aspera/transfer/error_info.rb +0 -91
@@ -1,6 +1,12 @@
1
1
  $schema: http://json-schema.org/draft-04/schema#
2
+ title: Aspera Sync job description (conf)
3
+ description: Async session description, identical to `asyncs` Node API.
2
4
  $comment: >-
3
5
  This is a YAML version of the original JSON schema from asyncs API.
6
+ It is modified with special `x-` fields.
7
+ x-ts-name [Bool,String] `true` if same name in transfer spec, else real name in transfer spec
8
+ x-ts-convert [String] Name of methods to convert value from transfer spec to `conf`
9
+ `x-` fields are also documented in `command_line_builder.rb`
4
10
  type: object
5
11
  required:
6
12
  - name
@@ -8,15 +14,18 @@ required:
8
14
  - remote
9
15
  properties:
10
16
  ascp_dir:
11
- description: Directory containing ascp executable to use
17
+ description: Directory containing ascp executable to use.
12
18
  type: string
13
19
  default: ""
14
20
  assume_no_mods:
15
- description: Assume that the directory structure has not been modified
21
+ description: Assume that the directory structure has not been modified.
16
22
  type: boolean
17
23
  default: false
24
+ x-cli-option: true
25
+ x-cli-switch: true
18
26
  checksum:
19
- description: Use the specified checksum type. Default is none on cloud storage
27
+ description: Use the specified checksum type. Default is none on cloud storage.
28
+ type: string
20
29
  enum:
21
30
  - sha1
22
31
  - md5
@@ -24,71 +33,93 @@ properties:
24
33
  - md5_sparse
25
34
  - none
26
35
  default: sha1_sparse
36
+ x-cli-option: true
37
+ x-cli-short: -k
27
38
  clean_excluded:
28
39
  description:
29
40
  Removes any existing entries in the snapshot database for excluded
30
41
  paths
31
42
  type: boolean
32
43
  default: false
44
+ x-cli-option: true
45
+ x-cli-switch: true
33
46
  store_metadata_records:
34
- description: Store the acls or xattrs in the snapshot database
47
+ description: Store the acls or xattrs in the snapshot database.
35
48
  type: boolean
36
49
  default: false
50
+ x-cli-option: true
51
+ x-cli-switch: true
37
52
  cookie:
38
- description: User-defined identification string
53
+ description: User-defined identification string.
39
54
  type: string
40
55
  default: ""
56
+ x-cli-option: true
41
57
  cooloff_max_seconds:
42
58
  description:
43
59
  Wait up to the specified time for a file to stop changing before
44
60
  skipping synchronization of the file. 0 for disabled
45
61
  type: integer
46
62
  default: 0
63
+ x-cli-option: --cooloff-max
47
64
  cooloff_seconds:
48
- description: Delay the start of the transfer to confirm that the content is not changing.
65
+ description:
66
+ Delay the start of the transfer to confirm that the content is not changing.
49
67
  Value must be between 0 and 60
50
68
  type: integer
51
69
  default: 3
70
+ x-cli-option: --cooloff
52
71
  create_dir:
53
- description: Create the source directory, target directory, or both, if they do not exist
72
+ description: Create the source directory, target directory, or both, if they do not exist.
54
73
  type: boolean
55
74
  default: false
75
+ x-cli-option: true
76
+ x-cli-switch: true
56
77
  db_cache_size:
57
- description: Specify DB cache size
78
+ description: Specify DB cache size.
58
79
  type: integer
59
80
  default: 16000
60
81
  db_journal_off:
61
- description: Turn off DB journal
82
+ description: Turn off DB journal.
62
83
  type: boolean
63
84
  default: false
64
85
  db_sync_on:
65
- description: Enable synchronous write in DB
86
+ description: Enable synchronous write in DB.
66
87
  type: boolean
67
88
  default: false
68
89
  dedup:
69
- description: Take the specified action when async detects duplicate files on the source
90
+ description: Take the specified action when async detects duplicate files on the source.
91
+ type: string
70
92
  enum:
71
93
  - copy
72
94
  - inode
73
95
  - hardlink
74
96
  - none
75
97
  default: none
98
+ x-cli-option: true
76
99
  delete_before:
77
- description: Schedule deletes before transfers
100
+ description: Schedule deletes before transfers.
78
101
  type: boolean
79
102
  default: false
103
+ x-cli-option: true
104
+ x-cli-switch: true
80
105
  delete_delay:
81
- description: Delay actual deletes until the end of the synchronization
106
+ description: Delay actual deletes until the end of the synchronization.
82
107
  type: boolean
83
108
  default: false
109
+ x-cli-option: true
110
+ x-cli-switch: true
84
111
  direction:
85
- description: The direction of replication relative to the local
112
+ description: The direction of replication relative to the local.
113
+ type: string
86
114
  enum:
87
115
  - bidi
88
116
  - pull
89
117
  - push
90
118
  default: push
119
+ x-cli-option: true
120
+ x-cli-short: -K
91
121
  filters:
122
+ $comment: "Options -E --exclude-from --exclude --include -I --include-from"
92
123
  description:
93
124
  The filters allow to further specify which files have to be excluded
94
125
  and included from the transfer list. Each filter is defined by a rule and
@@ -101,7 +132,8 @@ properties:
101
132
  - value
102
133
  properties:
103
134
  rule:
104
- description: The rule for the filter
135
+ description: The rule for the filter.
136
+ type: string
105
137
  enum:
106
138
  - include
107
139
  - exclude
@@ -119,24 +151,29 @@ properties:
119
151
  type: object
120
152
  properties:
121
153
  absolute:
122
- description: UTC timestamp. Empty value for disabled
154
+ description: UTC timestamp. Empty value for disabled.
123
155
  type: string
124
156
  default: ""
125
157
  relative_seconds:
126
- description: Relative to async start time. -1 for disabled
158
+ description: Relative to async start time. `-1` for disabled.
127
159
  type: integer
128
160
  default: -1
129
161
  ignore_delete:
130
- description: Do not copy removals to the peer
162
+ description: Do not copy removals to the peer.
131
163
  type: boolean
132
164
  default: false
165
+ x-cli-option: true
166
+ x-cli-switch: true
133
167
  ignore_mode:
134
- description: Source files that have had their mode changed after the initial
168
+ description:
169
+ Source files that have had their mode changed after the initial.
135
170
  transfer will not update the destination file mode.
136
171
  type: boolean
137
172
  default: false
173
+ x-cli-option: true
174
+ x-cli-switch: true
138
175
  ignore_remote_host_sync_name:
139
- description: Do not check that the remote host being used for the current
176
+ description: Do not check that the remote host being used for the current.
140
177
  transfer matches the host used when the local database was created
141
178
  type: boolean
142
179
  default: false
@@ -146,102 +183,131 @@ properties:
146
183
  - path
147
184
  properties:
148
185
  pass:
149
- description: Authenticate the local async with the specified password
186
+ description: Authenticate the local async with the specified password.
150
187
  type: string
151
188
  default: ""
152
189
  path:
153
- description: The directory to be synchronized on the local host
190
+ description: The directory to be synchronized on the local host.
154
191
  type: string
192
+ x-cli-option: --local-dir
193
+ x-cli-short: -d
155
194
  local_apply_docroot:
156
- description: Prepend the docroot to the directory on the local host
195
+ description: Prepend the docroot to the directory on the local host.
157
196
  type: boolean
158
197
  default: false
198
+ x-cli-option: --apply-local-docroot
199
+ x-cli-switch: true
159
200
  local_db_dir:
160
201
  description: Use the specified database directory on the local host.
161
202
  Default is `.private-asp` at the root level of the synchronized directory.
162
203
  type: string
163
204
  default: ""
205
+ x-cli-option: true
206
+ x-cli-short: -b
164
207
  local_checksum_threads:
165
- description:
166
- Maximum number of threads to do checksum on the local host. Value
167
- must be between 1 and 99
208
+ description: Maximum number of threads to do checksum on the local host.
209
+ Value must be between 1 and 99.
168
210
  type: integer
169
211
  default: 4
212
+ x-cli-option: true
170
213
  local_db_store_dir:
171
- description: Store/Restore the database to/from the specified directory on the local host.
214
+ description:
215
+ Store/Restore the database to/from the specified directory on the local host.
172
216
  The value can be an absolute path, an URI or - (use the local sync dir)
173
217
  type: string
174
218
  default: ""
219
+ x-cli-option: true
175
220
  local_force_stat:
176
- description: Forces the local async to retrieve file information even when
177
- no changes are detected by the scanner or monitor.
221
+ description: Forces the local async to retrieve file information even when no changes are detected by the scanner or monitor.
178
222
  type: boolean
179
223
  default: false
224
+ x-cli-option: true
225
+ x-cli-switch: true
180
226
  local_fs_threads:
181
- description: Maximum number of threads to do file system operations on the local host.
227
+ description:
228
+ Maximum number of threads to do file system operations on the local host.
182
229
  Value must be between 1 and 99.
183
230
  type: integer
184
231
  default: 1
232
+ x-cli-option: true
185
233
  local_keep_dir:
186
- description: Move deleted files into the specified directory on the local host
234
+ description: Move deleted files into the specified directory on the local host.
187
235
  type: string
188
236
  default: ""
237
+ x-cli-option: --keep-dir-local
189
238
  local_mount_signature:
190
239
  description: Verify that the file system is mounted by the existence of this file on the local host.
191
240
  type: string
192
241
  default: ""
242
+ x-cli-option: true
193
243
  local_move_cache_timeout_seconds:
194
- description: Delay in seconds before aborting moving a file from local cache to final destination.
195
- -1 for disabled.
244
+ description:
245
+ Delay in seconds before aborting moving a file from local cache to final destination.
246
+ `-1` for disabled.
196
247
  type: integer
197
248
  default: -1
249
+ x-cli-option: --local-move-cache-timeout
198
250
  local_preserve_acls:
199
- description: Preserve access control lists on the local host
251
+ description: Preserve access control lists on the local host.
252
+ type: string
200
253
  enum:
201
254
  - native
202
255
  - metafile
203
256
  - none
204
257
  default: none
258
+ x-cli-option: --preserve-acls
205
259
  local_preserve_xattrs:
206
- description: Preserve extended attributes on the local
260
+ description: Preserve extended attributes on the local.
261
+ type: string
207
262
  enum:
208
263
  - native
209
264
  - metafile
210
265
  - none
211
266
  default: none
267
+ x-cli-option: --preserve-xattrs
212
268
  local_scan_interval_milliseconds:
213
269
  description:
214
270
  Enable periodic scans on the local host during a continuous sync.
215
- -1 for disabled
271
+ `-1` for disabled
216
272
  type: integer
217
273
  default: -1
274
+ x-cli-option: --scan-interval
218
275
  local_scan_threads:
219
276
  description: Number of directory scanning threads on the local host.
220
277
  Value must be between 1 and 99
221
278
  type: integer
222
279
  default: 1
280
+ x-cli-option: --scan-threads
223
281
  local_stat_cache_size:
224
- description: Set stat cache size on the local host. 0 for disabled
282
+ description: Set stat cache size on the local host. 0 for disabled.
225
283
  type: integer
226
284
  default: 0
227
285
  log:
228
286
  type: object
229
287
  properties:
230
288
  level:
231
- description: Use the specified log level
289
+ description: Use the specified log level.
290
+ type: string
232
291
  enum:
233
292
  - log
234
293
  - dbg1
235
294
  - dbg2
236
295
  default: log
296
+ x-cli-option: -D
297
+ x-cli-special: true
298
+ x-cli-switch: true
237
299
  local_dir:
238
- description: Use the specified logging directory on the local host
300
+ description: Use the specified logging directory on the local host.
239
301
  type: string
240
302
  default: ""
303
+ x-cli-option: --alt-logdir
304
+ x-cli-short: -L
241
305
  remote_dir:
242
- description: Use the specified logging directory on the remote host
306
+ description: Use the specified logging directory on the remote host.
243
307
  type: string
244
308
  default: ""
309
+ x-cli-option: --remote-logdir
310
+ x-cli-short: -R
245
311
  manifest_path:
246
312
  description:
247
313
  A directory path where ascp will create manifest TEXT files (passed
@@ -252,40 +318,54 @@ properties:
252
318
  description:
253
319
  Force the pulling side to be exactly like the pushing side, removing
254
320
  files on the destination that don't exist on the source and resending source
255
- files that don't have an exact match on the destination. Cannot be used
256
- in bi-directional mode
321
+ files that don't have an exact match on the destination.
322
+ Cannot be used in bi-directional mode.
257
323
  type: boolean
258
324
  default: false
325
+ x-cli-option: true
326
+ x-cli-switch: true
259
327
  mode:
260
- description:
261
- Specify whether async runs continuously or not. In one_time mode,
262
- async stops after the first full synchronization
328
+ description: Specify whether async runs continuously or not.
329
+ In `one_time` mode, async stops after the first full synchronization.
330
+ `continuous` supported only if the source is Windows or Linux.
331
+ type: string
263
332
  enum:
264
333
  - one_time
265
334
  - continuous
266
335
  default: one_time
336
+ x-cli-option: --continuous
337
+ x-cli-short: -C
338
+ x-cli-special: true
339
+ x-cli-switch: true
267
340
  monitor_buffer_size:
268
341
  description: Bytes to allocate for the change monitor buffer.
269
342
  Applies to any Windows machine on either side.
270
- -1 to use the computed value.
343
+ `-1` to use the computed value.
271
344
  type: integer
272
345
  default: -1
273
346
  name:
274
- description: Name of the synchronization pair
347
+ description: Name of the synchronization pair.
275
348
  type: string
349
+ x-cli-option: true
350
+ x-cli-short: -N
276
351
  no_log:
277
352
  description: Suppress log messages for ITEM.
278
353
  The only currently supported ITEM is 'stats', which suppresses both STATS and PROG log messages.
279
354
  type: string
280
355
  default: ""
356
+ x-cli-option: true
281
357
  no_preserve_root_attrs:
282
- description: Disable the preservation of attributes on the Sync root
358
+ description: Disable the preservation of attributes on the Sync root.
283
359
  type: boolean
284
360
  default: false
361
+ x-cli-option: true
362
+ x-cli-switch: true
285
363
  no_scan:
286
- description: Skip initial scanning
364
+ description: Skip initial scanning.
287
365
  type: boolean
288
366
  default: false
367
+ x-cli-option: true
368
+ x-cli-switch: true
289
369
  notifications_sharing_retry_max:
290
370
  description: Retry processing filesystem notifications up to the specified
291
371
  maximum number after a sharing violation.
@@ -294,52 +374,77 @@ properties:
294
374
  overwrite:
295
375
  description: >-
296
376
  Overwrite files according to the specified policy.
297
- Default is determined by the direction: conflict for bidi, otherwise always.
377
+ Default is determined by the direction: `conflict` for `bidi`, otherwise `always`.
378
+ type: string
298
379
  enum:
299
380
  - always
300
381
  - older
301
382
  - conflict
383
+ x-cli-option: true
384
+ x-cli-short: -o
302
385
  pending_max:
303
- description: Allow the maximum number of files that are pending transfer to
304
- be no more than the specified number
386
+ description: Allow the maximum number of files that are pending transfer to be no more than the specified number.
305
387
  type: integer
306
388
  default: 2000
389
+ x-cli-option: true
307
390
  preserve_access_time:
308
- description: Preserve file access time from the source to the destination
391
+ description: Preserve file access time from the source to the destination.
309
392
  type: boolean
310
393
  default: false
394
+ x-cli-option: true
395
+ x-cli-switch: true
311
396
  preserve_creation_time:
312
- description: Preserve file creation time from the source to the destination
397
+ description: Preserve file creation time from the source to the destination.
313
398
  type: boolean
314
399
  default: false
400
+ x-cli-option: true
401
+ x-cli-switch: true
315
402
  preserve_gid:
316
- description: Preserve the file owner's GID
403
+ description: Preserve the file owner's GID.
317
404
  type: boolean
318
405
  default: false
406
+ x-cli-option: true
407
+ x-cli-short: -j
408
+ x-cli-switch: true
319
409
  preserve_modification_time:
320
- description: Preserve file modification time from the source to the destination
410
+ $comment: --preserve-time, -t for both preserve_modification_time and preserve_creation_time
411
+ description: Preserve file modification time from the source to the destination.
321
412
  type: boolean
322
413
  default: false
414
+ x-cli-option: true
415
+ x-cli-switch: true
323
416
  preserve_object_lock_legal_hold:
324
- description: Preserve object lock legal hold status from the source to the destination
417
+ description: Preserve object lock legal hold status from the source to the destination.
325
418
  type: boolean
326
419
  default: false
420
+ x-cli-option: true
421
+ x-cli-switch: true
327
422
  preserve_object_lock_retention:
328
- description: Preserve object lock retention from the source to the destination
423
+ description: Preserve object lock retention from the source to the destination.
329
424
  type: boolean
330
425
  default: false
426
+ x-cli-option: true
427
+ x-cli-switch: true
331
428
  preserve_object_metadata:
332
- description: Preserve object metadata from the source to the destination
429
+ description: Preserve object metadata from the source to the destination.
333
430
  type: boolean
334
431
  default: false
432
+ x-cli-option: true
433
+ x-cli-switch: true
335
434
  preserve_uid:
336
- description: Preserve the file owner's UID
435
+ description: Preserve the file owner's UID.
337
436
  type: boolean
338
437
  default: false
438
+ x-cli-option: true
439
+ x-cli-short: -u
440
+ x-cli-switch: true
339
441
  quiet:
340
- description: Disable progress display
442
+ description: Disable progress display.
341
443
  type: boolean
342
444
  default: true
445
+ x-cli-option: true
446
+ x-cli-switch: true
447
+ x-cli-short: -q
343
448
  remote:
344
449
  type: object
345
450
  required:
@@ -348,213 +453,258 @@ properties:
348
453
  - path
349
454
  properties:
350
455
  fingerprint:
351
- description: Check it against server SSH host key fingerprint
456
+ description: Check it against server SSH host key fingerprint.
352
457
  type: string
353
458
  default: ""
354
459
  x-ts-name: sshfp
355
460
  host:
356
- description: Use the specified host name or address of the remote host
461
+ description: Use the specified host name or address of the remote host.
357
462
  type: string
358
463
  x-ts-name: remote_host
464
+ x-cli-option: true
359
465
  pass:
360
- description: Authenticate the transfer with the specified password
466
+ description: Authenticate the transfer with the specified password.
361
467
  type: string
362
468
  default: ""
363
469
  x-ts-name: remote_password
470
+ x-cli-option: true
471
+ x-cli-short: -w
364
472
  path:
365
- description: Synchronize the specified directory on the remote host
473
+ $comment: This option can use this format [[USER@]HOST:]PATH
474
+ description: Synchronize the specified directory on the remote host.
366
475
  type: string
476
+ x-cli-option: --remote-dir
477
+ x-cli-short: -r
367
478
  port:
368
479
  description: Use the specified TCP port for SSH.
369
480
  Used when connect_mode is `ssh`
370
481
  type: integer
371
482
  default: 22
372
483
  x-ts-name: ssh_port
484
+ x-cli-option: --tcp-port
485
+ x-cli-short: -P
373
486
  ws_port:
374
- description:
375
- Use the specified port for Websocket.
487
+ description: Use the specified port for Websocket.
376
488
  Used when connect_mode is `ws`.
377
489
  type: integer
378
490
  default: 9093
379
491
  x-ts-name: wss_port
380
492
  connect_mode:
381
- description: Define how to connect to the remote
493
+ description: Define how to connect to the remote.
494
+ type: string
382
495
  enum:
383
496
  - ssh
384
497
  - ws
385
498
  default: ssh
499
+ x-cli-option: --ws-connect
500
+ x-cli-special: true
501
+ x-cli-switch: true
386
502
  private_key_paths:
387
- description: Authenticate with the specified SSH private key file
503
+ description: Authenticate with the specified SSH private key file.
388
504
  type: array
389
505
  items:
390
506
  type: string
507
+ x-cli-option: --private-key-path
508
+ x-cli-short: -i
391
509
  proxy:
392
- description: Specify the address of the Aspera high-speed proxy server
510
+ description: Specify the address of the Aspera high-speed proxy server.
393
511
  type: object
394
512
  #x-ts-name: proxy : TODO: conversion
513
+ x-cli-option: true
514
+ x-cli-special: true
395
515
  properties:
396
516
  host:
397
- description: Use the specified host name or address of the proxy
517
+ description: Use the specified host name or address of the proxy.
398
518
  type: string
399
519
  default: ""
400
520
  pass:
401
- description: Authenticate to the proxy with the specified password
521
+ description: Authenticate to the proxy with the specified password.
402
522
  type: string
403
523
  default: ""
404
524
  port:
405
- description: Use the specified port, default is 9091 for dnat, 9092
525
+ description: Use the specified port, default is 9091 for dnat, 9092.
406
526
  for dnats
407
527
  type: integer
408
528
  protocol:
409
- description: The protocol to be used
529
+ description: The protocol to be used.
530
+ type: string
410
531
  enum:
411
532
  - none
412
533
  - dnat
413
534
  - dnats
414
535
  default: none
415
536
  user:
416
- description: Authenticate to the proxy with the specified username
537
+ description: Authenticate to the proxy with the specified username.
417
538
  type: string
418
539
  default: ""
419
540
  token:
420
- description: Token string passed to server's authentication service
541
+ description: Token string passed to server's authentication service.
421
542
  type: string
422
543
  default: ""
423
544
  x-ts-name: token
545
+ x-cli-short: -W
424
546
  token_node_user:
425
547
  description: Node API user identity associated with the token.
426
548
  Required for node user bearer tokens
427
549
  type: string
428
550
  default: ""
429
551
  user:
430
- description: Authenticate the transfer with the specified username
552
+ description: Authenticate the transfer with the specified username.
431
553
  type: string
432
554
  x-ts-name: remote_user
555
+ x-cli-option: true
433
556
  remote_checksum_threads:
434
557
  description: Maximum number of threads to do checksum on the remote host.
435
558
  Value must be between 1 and 99
436
559
  type: integer
437
560
  default: 4
561
+ x-cli-option: true
438
562
  remote_db_dir:
439
- description:
440
- Use the specified database directory on the remote host.
563
+ description: Use the specified database directory on the remote host.
441
564
  Default is `.private-asp` at the root level of the synchronized directory.
442
565
  type: string
443
566
  default: ""
567
+ x-cli-option: true
568
+ x-cli-short: -B
444
569
  remote_db_store_dir:
445
- description: Store/Restore the database to/from the specified directory on the remote host.
570
+ description:
571
+ Store/Restore the database to/from the specified directory on the remote host.
446
572
  The value can be an absolute path, an URI or - (use the remote sync dir).
447
573
  type: string
448
574
  default: ""
575
+ x-cli-option: true
449
576
  remote_force_stat:
450
- description: Forces the remote async to retrieve file information even when
451
- no changes are detected by the scanner or monitor.
577
+ description: Forces the remote async to retrieve file information even when no changes are detected by the scanner or monitor.
452
578
  type: boolean
453
579
  default: false
580
+ x-cli-option: true
581
+ x-cli-switch: true
454
582
  remote_fs_threads:
455
- description: Maximum number of threads to do file system operations on the remote host.
583
+ description:
584
+ Maximum number of threads to do file system operations on the remote host.
456
585
  Value must be between 1 and 99.
457
586
  type: integer
458
587
  default: 1
588
+ x-cli-option: true
459
589
  remote_keep_dir:
460
590
  description: Move deleted files into the specified directory on the remote host.
461
591
  type: string
462
592
  default: ""
593
+ x-cli-option: --keep-dir-remote
463
594
  remote_mount_signature:
464
595
  description: Verify that the file system is mounted by the existence of this file on the remote host.
465
596
  type: string
466
597
  default: ""
598
+ x-cli-option: true
467
599
  remote_move_cache_timeout_seconds:
468
600
  description:
469
601
  Delay in seconds before aborting moving a file from remote cache
470
602
  to final destination.
471
- -1 for disabled.
603
+ `-1` for disabled.
472
604
  type: integer
473
605
  default: -1
606
+ x-cli-option: --remote-move-cache-timeout
474
607
  remote_preserve_acls:
475
- description:
476
- Preserve access control lists on the remote host.
608
+ description: Preserve access control lists on the remote host.
477
609
  If not specified, the default behavior is to use the same storage mode as specified by `preserve_acls`.
610
+ type: string
478
611
  enum:
479
612
  - native
480
613
  - metafile
481
614
  - none
615
+ x-cli-option: true
482
616
  remote_preserve_xattrs:
483
- description:
484
- Preserve extended attributes on the remote host.
617
+ description: Preserve extended attributes on the remote host.
485
618
  If not specified, the default behavior is to use the same storage mode as specified by `preserve_xattrs`.
619
+ type: string
486
620
  enum:
487
621
  - native
488
622
  - metafile
489
623
  - none
624
+ x-cli-option: true
490
625
  remote_scan_interval_milliseconds:
491
626
  description: Enable periodic scans on the remote host.
492
- -1 for disabled.
627
+ `-1` for disabled.
493
628
  type: integer
494
629
  default: -1
630
+ x-cli-option: --remote-scan-interval
631
+ x-cli-special: true
495
632
  remote_scan_threads:
496
633
  description: Number of directory scanning threads on the remote host.
497
634
  Value must be between 1 and 99.
498
635
  type: integer
499
636
  default: 1
637
+ x-cli-option: true
500
638
  remote_stat_cache_size:
501
639
  description: Set stat cache size on the remote host.
502
640
  0 for disabled.
503
641
  type: integer
504
642
  default: 0
505
643
  remove_after_transfer:
506
- description: Remove source files after they are successfully synchronized
644
+ description: Remove source files after they are successfully synchronized.
507
645
  type: boolean
508
646
  default: false
647
+ x-cli-option: true
648
+ x-cli-switch: true
509
649
  reset:
510
650
  description:
511
651
  Clear the snapshot database and rescan the synchronized directories
512
652
  and files to create a fresh snapshot
513
653
  type: boolean
514
654
  default: false
655
+ x-cli-option: true
656
+ x-cli-short: -x
657
+ x-cli-switch: true
515
658
  resume:
516
- description: Partial transfers may exist if communication disruptions caused
517
- the underlying ascp processes to terminate early.
659
+ description: >-
660
+ Partial transfers may exist if communication disruptions caused the underlying ascp processes to terminate early.
518
661
  Note that transfer resumption can only happen if the `reset` option is disabled.
519
662
  If an async session starts with `reset` enabled and resume enabled, transfers interrupted during that
520
663
  session will be resumeable, but only if async is then restarted with 'reset' disabled.
521
664
  type: object
522
665
  properties:
523
666
  enabled:
524
- description:
525
- Enable the possibility of resuming individual file transfers between async sessions.
667
+ description: Enable the possibility of resuming individual file transfers between async sessions.
526
668
  type: boolean
527
669
  default: false
528
670
  min_size:
529
671
  description: This field specifies the minimum size of files that will be allowed to resume.
530
672
  type: integer
531
673
  default: "1048576"
674
+ x-cli-option: --support-resume
532
675
  max_age:
533
- description: Sets the age limit in days for temporary files that will
534
- be preserved on cleanup (usually at async's start and stop) for potential
535
- transfer resume. Temp files older than the given value will be removed
676
+ description: >-
677
+ Sets the age limit in days for temporary files that will be preserved
678
+ on cleanup (usually at async's start and stop) for potential transfer resume.
679
+ Temp files older than the given value will be removed
536
680
  regardless of whether they might be resumeable.
537
681
  type: integer
538
682
  default: "5"
683
+ x-cli-option: --resume-age-days
539
684
  resume_scan:
540
- description: Resume the scan from where the previous execution left off
685
+ description: Resume the scan from where the previous execution left off.
541
686
  type: boolean
542
687
  default: false
688
+ x-cli-option: true
689
+ x-cli-switch: true
543
690
  scan_dir_rename:
544
- description: Enable the detection of renamed directories and files compared
691
+ description: Enable the detection of renamed directories and files compared.
545
692
  to the previous scan, based on matching inodes
546
693
  type: boolean
547
694
  default: false
695
+ x-cli-option: true
696
+ x-cli-switch: true
548
697
  scan_file_rename:
549
- description: Enable the detection of renamed files compared to the previous
550
- scan, based on matching inodes
698
+ description: Enable the detection of renamed files compared to the previous scan, based on matching inodes.
551
699
  type: boolean
552
700
  default: false
701
+ x-cli-option: true
702
+ x-cli-switch: true
553
703
  scan_intensity:
554
- description:
555
- Scan at the set intensity.
704
+ description: Scan at the set intensity.
556
705
  `vlow` minimizes system activity.
557
706
  `vhigh` maximizes system activity by continuously scanning files without rest.
707
+ type: string
558
708
  enum:
559
709
  - vlow
560
710
  - low
@@ -562,28 +712,37 @@ properties:
562
712
  - high
563
713
  - vhigh
564
714
  default: medium
715
+ x-cli-option: true
716
+ x-cli-short: -H
565
717
  sharing_retry_max:
566
718
  description: Retry synchronizations up to the specified maximum number after a sharing violation.
567
719
  type: integer
568
720
  default: 3
721
+ x-cli-option: true
569
722
  symbolic_links:
570
- description:
571
- Handle symbolic links with the specified method.
723
+ description: Handle symbolic links with the specified method.
572
724
  Default is `skip` on windows, `copy` otherwise.
725
+ type: string
573
726
  enum:
574
727
  - copy
575
728
  - skip
576
729
  - follow
730
+ x-cli-option: true
731
+ x-cli-short: -n
577
732
  tags:
578
- description: User-defined metadata tags
733
+ description: User-defined metadata tags.
579
734
  type: object
580
735
  properties: {}
581
736
  x-ts-name: tags
737
+ x-cli-option: --tags64
738
+ x-cli-special: true
582
739
  transfer_threads:
583
740
  description:
584
741
  Use the specified number of dedicated transfer threads to process
585
742
  files smaller or equal to the specified size
586
743
  type: array
744
+ x-cli-option: true
745
+ x-cli-special: true
587
746
  items:
588
747
  type: object
589
748
  required:
@@ -591,17 +750,18 @@ properties:
591
750
  properties:
592
751
  size:
593
752
  description: Upper limit.
594
- -1 for infinity.
753
+ `-1` for infinity.
595
754
  type: integer
596
755
  default: -1
597
756
  threads:
598
- description: The number of threads
757
+ description: The number of threads.
599
758
  type: integer
600
759
  transport:
601
760
  type: object
602
761
  properties:
603
762
  cipher:
604
- description: Specify encryption algorithm for file data
763
+ description: Specify encryption algorithm for file data.
764
+ type: string
605
765
  enum:
606
766
  - none
607
767
  - aes128
@@ -614,66 +774,88 @@ properties:
614
774
  - aes192gcm
615
775
  - aes256gcm
616
776
  default: aes128
777
+ x-cli-option: true
778
+ x-cli-short: -c
617
779
  compression:
618
- description: Compress a file before transfer using the specified MODE
780
+ description: Compress a file before transfer using the specified MODE.
781
+ type: string
619
782
  enum:
620
783
  - none
621
784
  - zlib
622
785
  default: none
786
+ x-cli-option: true
623
787
  datagram_size:
624
- description:
625
- Specify the datagram size (MTU) for FASP.
788
+ description: Specify the datagram size (MTU) for FASP.
626
789
  By default it uses the detected path MTU.
627
790
  type: integer
791
+ x-cli-option: true
792
+ x-cli-short: -Z
628
793
  min_rate:
629
794
  description: Attempt to transfer no slower than the specified rate (in bps).
630
795
  type: integer
631
796
  default: 0
797
+ x-cli-option: true
798
+ x-cli-short: -m
632
799
  rate_policy:
633
800
  description: Defines how `ascp` will manage the bandwidth.
801
+ type: string
634
802
  enum:
635
803
  - fair
636
804
  - fixed
637
805
  - high
638
806
  - low
639
807
  default: fair
808
+ x-cli-option: true
809
+ x-cli-short: -a
640
810
  raw_options:
641
811
  description: Pass arbitrary arguments to `ascp`.
642
812
  type: array
643
813
  items:
644
814
  type: string
815
+ x-cli-option: true
816
+ x-cli-special: true
645
817
  read_block_size:
646
- description:
647
- Use the specified block size (in bytes) for reading.
818
+ description: Use the specified block size (in bytes) for reading.
648
819
  Default is determined by `aspera.conf`.
649
820
  type: integer
821
+ x-cli-option: true
822
+ x-cli-short: -g
650
823
  rexmsg_size:
651
824
  description:
652
825
  Use the specified size (in bytes) for a retransmission request.
653
826
  Default is determined by `aspera.conf`.
654
827
  type: integer
828
+ x-cli-option: true
829
+ x-cli-short: -X
655
830
  target_rate:
656
- description: Transfer no faster than the specified rate (in bps)
831
+ description: Transfer no faster than the specified rate (in bps).
657
832
  type: integer
658
833
  default: 10000000
659
834
  x-ts-name: target_rate_kbps
660
835
  x-ts-convert: kbps_to_bps
836
+ x-cli-option: true
837
+ x-cli-short: -l
661
838
  write_block_size:
662
- description:
663
- Use the specified block size (in bytes) for writing.
839
+ description: Use the specified block size (in bytes) for writing.
664
840
  Default is determined by `aspera.conf`.
665
841
  type: integer
842
+ x-cli-option: true
843
+ x-cli-short: -G
666
844
  udp_port:
667
845
  description: Use the specified UDP port for FASP data transfer.
668
846
  type: integer
669
847
  default: 33001
848
+ x-cli-option: true
849
+ x-cli-short: -O
670
850
  watchd:
671
- description: When connection is configured, `asperawatchd` is used to detect
672
- the changes on the source directory
851
+ description: When connection is configured, `asperawatchd` is used to detect the changes on the source directory.
673
852
  type: object
853
+ x-cli-option: --watchd
854
+ x-cli-special: true
674
855
  properties:
675
856
  datastore:
676
857
  description: Specify the type of datastore, `none` for disabled.
858
+ type: string
677
859
  enum:
678
860
  - none
679
861
  - redis
@@ -684,18 +866,20 @@ properties:
684
866
  Default is the current username.
685
867
  type: string
686
868
  host:
687
- description: Use the specified host name or address to connect to the datastore
869
+ description: Use the specified host name or address to connect to the datastore.
688
870
  type: string
689
871
  default: ""
690
872
  port:
691
- description: Use the specified port
873
+ description: Use the specified port.
692
874
  type: integer
693
875
  default: 31415
694
876
  write_gid:
695
- description: Try to write files as the specified group
877
+ description: Try to write files as the specified group.
696
878
  type: string
697
879
  default: ""
880
+ x-cli-option: true
698
881
  write_uid:
699
- description: Try to write files as the specified user
882
+ description: Try to write files as the specified user.
700
883
  type: string
701
884
  default: ""
885
+ x-cli-option: true