package common templ NameField() {
Glob pattern for files to transfer. Leave empty to transfer all files.
Pattern for output filename. Use variables like ${`filename`}, ${`timestamp`}, ${`date`}
Pattern for filenames. Available variables:
${`filename`} - Original filename without extension (e.g., "report")
${`ext`} - Original file extension (e.g., "csv")
${`date:format`} - Current date using Go's time format:
• 2006-01-02 → YYYY-MM-DD
• 20060102 → YYYYMMDD
• 2006-01-02 15:04:05 → YYYY-MM-DD_HH:MM:SS
Example: ${`filename`}_${`date:2006-01-02`}_${`ext`} → "report_2023-03-01.csv"
Files will be moved here after successful transfer
Warning: This will permanently delete the original files
Files with the same hash that have been successfully processed before will be skipped
Number of files to transfer simultaneously (higher values may improve performance but increase resource usage)
Optional: Additional rclone flags for fine-tuning the transfer.