Copy File
Copies or moves files between cloud storage locations.
Overview
The Copy File node duplicates or relocates files in cloud storage. Use it to:
- Copy files to backup locations
- Move processed files to archive folders
- Organize files by category
- Create file copies with new names
Parameters
| Parameter | Description | Required |
|---|---|---|
| File | File to copy or move | Yes |
| File Destination | Where to copy the file | Yes |
| New File Name | Rename the file (optional) | No |
| Delete Original | Remove source file (move operation) | No |
File
The file to copy. Typically from a trigger or upstream node:
{{$item}}
{{$item.data.file}}
File Destination
Configure where to copy the file, including:
- Target folder in Google Drive
- Other supported cloud storage locations
New File Name
Optional new name for the copied file. The original extension is preserved if not specified in the new name:
archived_{{$item.file.name}}
{{$item.data.processedDate}}_{{$item.file.name}}
Delete Original
When enabled, the source file is removed after copying—effectively a move operation.
Output
The item passes through with updated file information reflecting the new location.
Examples
Archive Processed Files
Move files after processing:
[Google Drive Trigger] → [Data Extractor] → [Copy File: delete original]
- File:
{{\$item}} - File Destination: Archive folder
- Delete Original: enabled
Organize by Category
Copy to category-specific folders:
[Google Drive Trigger] → [Switch: by type] → [Copy File: invoices folder]
→ [Copy File: receipts folder]
Backup with Timestamp
Create timestamped backup copies:
- File:
{{\$item}} - File Destination: Backup folder
- New File Name:
{{new Date().toISOString().split('T')[0]}}_{{\$item.file.name}} - Delete Original: disabled
Rename on Copy
Add prefix to copied files:
- File:
{{\$item}} - File Destination: Processed folder
- New File Name:
processed_{{\$item.file.name}}
Tips
- Use with Google Drive Trigger to process and organize incoming files
- Enable "Delete Original" for move operations
- New File Name preserves extension if not specified
- Use expressions for dynamic folder organization
- Handle errors for missing files or permission issues
- The destination folder must exist