
File system Copy
CertifiedCopy files on the local filesystem
File system Copy
Certified
Copy files on the local filesystem
Copies files or directories within allowed local paths. Local access requires configuring allowed-paths in plugin defaults; operations outside are blocked.
Set overwrite: true to replace existing targets.
Example (Kestra config):
plugins:
configurations:
- type: io.kestra.plugin.fs.local.Copy
values:
allowed-paths:
- /data/files
yaml
type: io.kestra.plugin.fs.local.CopyExamples
Copy a file within the local filesystem
yaml
id: copy_file
namespace: company.team
tasks:
- id: copy
type: io.kestra.plugin.fs.local.Copy
from: "input/data.csv"
to: "backup/data.csv"
overwrite: true
Properties
from *Requiredstring
Source file or directory path
to *Requiredstring
Destination path on the local file system
overwrite booleanstring
Default
falseOverwrite existing files
If false, the task fails when the destination already exists.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.