Upload a file to an SMB (e.g., Samba) server directory.
type: "io.kestra.plugin.fs.smb.Upload"
Examples
id: fs_smb_upload
namespace: company.team
inputs:
- id: file
type: FILE
tasks:
- id: upload
type: io.kestra.plugin.fs.smb.Upload
host: localhost
port: "445"
username: foo
password: "{{ secret('SMB_PASSWORD') }}"
from: "{{ inputs.file }}"
to: "/my_share/dir2/file.txt"
Properties
from *Requiredstring
The file to copy, must be an internal storage URI
Pebble expression referencing an Internal Storage URI e.g. {{ outputs.mytask.uri }}
.
host *Requiredstring
Hostname of the remote server
enableSshRsa1 booleanstring
false
Enable the RSA/SHA1 algorithm (disabled by default)
overwrite booleanstring
false
Overwrite.
If set to false, it will raise an exception if the destination folder or file already exists.
password string
Password on the remote server
port string
445
Port of the remote server
to string
The destination path, if not set it will use the name of the file denoted by the from
property
username string
Username on the remote server
Outputs
from string
uri
The fully-qualified URIs that point to source data
to string
uri
The fully-qualified URIs that point to destination path