What is the problem you are having with rclone?
I have to upload around 40-50 piece of files (same extensions) to ftp, every day, to separated folders, where those file belongs.
Im, complete newbie in scripting, I just got to know rclone and it's amazing what it can do.
So I'm wondering is there any script to reclone to find out destination folder automatically for files to be uploaded, based on their names? More precisely based on the numbers in the file name:
Filenames 2nd and 3rd number are the same as destination folders last two digits,
Destination folders are in different places, but under the same root folder.
Is there any way to ask rclone to check the 2nd and 3rd character of each files waiting to be uploaded, and based on that two numbers, upload it to the a directory where these two numbers are listed.
For example:
- 50321_XXXXX.txt -----goes_to-----ftp:/xxxx/yyyy/zzzz/nn03/
- 51124_XXXXX.txt -----goes_to-----ftp:/xxxx/wwww/kkkk/nn11/
- 53413_XXXXX.txt -----goes_to-----ftp:/xxxx/dddd/aaaa/nn34/
Could you help me with where to go?
Thank you for your answers.
Run the command 'rclone version' and share the full output of the command.
rclone v1.60.1
-
os/version: darwin 10.15.7 (64 bit)
-
os/kernel: 19.6.0 (x86_64)
-
os/type: darwin
-
os/arch: amd64
-
go/version: go1.19.3
-
go/linking: dynamic
-
go/tags: cmount
Which cloud storage system are you using? (eg Google Drive)
FTP, Google drive
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
Paste command here
The rclone config contents with secrets removed.
Paste config here
A log from the command with the -vv
flag
Paste log here