Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Schedule automatic daily upload with FileZilla [closed]

I would like to use FileZilla to automatically upload PDFs to my GoDaddy hosted site daily, replacing the previous day's sheets. Is there any way to do this? I read online that batch files might work, could someone post a sample version of a batch file that would do the trick?

like image 415
ajs Avatar asked Jul 24 '14 23:07

ajs


People also ask

Can you automate file transfer in FileZilla?

The FileZilla client does not support any kind of automation. Though you can use WinSCP to easily script your FileZilla sites.

Can FileZilla be paused?

There is no Pause, but you can stop and resume the queue at any time (Process queue button/command).

Can I script FileZilla?

FileZilla cannot be scripted, it was designed for interactive use. For scripting, you're better off using a command line client like lftp.

Does FileZilla have an API?

FileZilla. Api: Managed api for FileZilla FTP server. Primarily for automated user/group creation and deletion.


1 Answers

FileZilla does not have any command line arguments (nor any other way) that allow an automatic transfer.

Some references:

  • FileZilla Client command-line arguments
  • https://trac.filezilla-project.org/ticket/2317
  • How do I send a file with FileZilla from the command line?

Though you can use any other client that allows automation.

You have not specified, what protocol you are using. FTP or SFTP? You will definitely be able to use WinSCP, as it supports all protocols that the free version of FileZilla does (and more).

Combine WinSCP scripting capabilities with Windows Scheduler:

  • Automate file transfers to FTP server or SFTP server;
  • Schedule file transfers to FTP/SFTP server

A typical WinSCP script for upload (with SFTP) looks like:

open sftp://user:[email protected]/ -hostkey="ssh-rsa 2048 xxxxxxxxxxx...="
put c:\mypdfs\*.pdf /home/user/
close

With FTP, just replace the sftp:// with the ftp:// and remove the -hostkey="..." switch.


Similarly for download: How to schedule an automatic FTP download on Windows?


WinSCP can even generate a script from an imported FileZilla session.

For details, see the guide to FileZilla automation.

(I'm the author of WinSCP)


Another option, if you are using SFTP, is the psftp.exe client from PuTTY suite.

like image 83
Martin Prikryl Avatar answered Sep 18 '22 12:09

Martin Prikryl