Move a file to a different folder on an SMB (e.g., Samba) server directory.
If the destination directory doesn't exist, it will be created
type: "io.kestra.plugin.fs.smb.Move"
Examples
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
The file or directory to move from remote server.
host *Requiredstring
Hostname of the remote server
to *Requiredstring
The path to move the file or directory to on the remote server.
The full destination path (with filename optionally)
If end with a /
, the destination is considered as a directory and filename will be happen
If the destFile exists, it is deleted first.
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
username string
Username on the remote server
Outputs
from string
uri
The from uri
to string
uri
The destination uri