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.
Filezila CLI Batch Scripting
Moderator: Project members
Re: Filezila CLI Batch Scripting
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
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
Re: Filezila CLI Batch Scripting
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
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org