Filezila CLI Batch Scripting

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
alphadios
500 Command not understood
Posts: 1
Joined: 2022-04-20 08:33
First name: Pandu
Last name: Satrio

Filezila CLI Batch Scripting

#1 Post by alphadios » 2022-04-20 08:39

Hello, I'm trying to make a script to send specific files from one of my servers into an SFTP.
The command provided in the documentation was to use either put or rput, but it sends ALL files inside the specified local directory.
I want to send only the files with customized filenames such as DDMMYYYY.csv and then, on the same date as the filename, my scheduler will send ONLY those files.

I think the filter command can be used but I can't find any documentation on the full syntax of the options. Can anyone give me a hint about my problem? Thank you.

User avatar
botg
Site Admin
Posts: 35555
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Filezila CLI Batch Scripting

#2 Post by botg » 2022-04-20 09:42

To recursively transfer all files that start with 8 digits followed and ended by ".csv":

rput --filter ^\d{8}\.csv$ d:\\mfiles\\ /targetpath


To recursively transfer all files that start with a particular date followed and ended by ".csv":

rput --filter ^20042022\.csv$ d:\\mfiles\\ /targetpath

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: Filezila CLI Batch Scripting

#3 Post by boco » 2022-04-20 15:05

FileZilla Pro CLI is supported in the dedicated customer forum. Please continue there. Thanks.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

Post Reply