You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plugins/transfer.md
+2-15Lines changed: 2 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,8 @@ Uploads a local file or directory to the remote target. Directory upload require
20
20
dest: /tmp/myapp.tar.gz
21
21
```
22
22
23
+
For small local directory trees, use `data.transfer.upload` with `recursive: true`. This uses the active SSH/SFTP connection and does not delete remote files that are missing locally. For large or incremental directory trees, use `data.transfer.rsync`.
24
+
23
25
## `data.transfer.download`
24
26
25
27
Downloads a remote file or directory to the controller. Directory download requires `recursive: true`.
@@ -32,21 +34,6 @@ Downloads a remote file or directory to the controller. Directory download requi
32
34
dest: ./artifacts/{{ server.name }}/app.log
33
35
```
34
36
35
-
## `data.transfer.sync`
36
-
37
-
Synchronizes a local tree to a remote destination.
38
-
39
-
```yaml
40
-
- id: sync_templates
41
-
use: data.transfer.sync
42
-
with:
43
-
src: ./files/
44
-
dest: /opt/myapp/files/
45
-
```
46
-
47
-
Use `data.transfer.sync` for small operational trees. It uploads local content to the remote directory and does not currently delete remote files that are missing locally. For very large trees, prefer a specialized artifact or package distribution mechanism.
48
-
49
-
50
37
## Rsync transfers
51
38
52
39
`data.transfer.rsync`uses the controller-side `rsync` executable and the current
0 commit comments