
File system Move
CertifiedMove or rename a file over SMB
File system Move
Certified
Move or rename a file over SMB
Moves/renames a file on an SMB/CIFS share; destination directories are created when missing. Default port 445.
yaml
type: io.kestra.plugin.fs.smb.MoveExamples
yaml
id: fs_smb_move
namespace: company.team
tasks:
- id: move
type: io.kestra.plugin.fs.smb.Move
host: localhost
port: "445"
username: foo
password: "{{ secret('SMB_PASSWORD') }}"
from: "/my_share/dir1/file.txt"
to: "/my_share/dir2/file.txt"
Properties
from *Requiredstring
Source file or directory URI
host *Requiredstring
Remote host
to *Requiredstring
Destination URI
Full target path. If it ends with /, the source name is kept. Existing targets are replaced when overwrite is true.
overwrite booleanstring
Default
falseOverwrite existing files
If false (default), fails when the destination already exists.
password string
Password
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
port string
Default
445Remote port
username string
Username
Outputs
from string
Format
uriThe from uri
to string
Format
uriThe destination uri