Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/norbertkiszka/sync-new-files-from-ftp

Synchronize new files from FTP server into local directory
https://github.com/norbertkiszka/sync-new-files-from-ftp

Last synced: about 2 months ago
JSON representation

Synchronize new files from FTP server into local directory

Awesome Lists containing this project

README

        

/**
* PHP simple script (CLI) to sync (download new files) from FTP server into local directory.
* This works in a loop. In every loop run it will try to connect to FTP server and download files with names that are not present in LOCAL_DIRECTORY. Changed files are not synced.
* This will not work with directories on a FTP server (it will generate syslog warning and continue).
* Version: I don't care with versioning here.
*/

Made for and tested with tcpsvd+ftpd on a embedded machine (oscilloscope Rigol DHO924S).