/FTPFetcher

Download files from a FTP server

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

FTPFetcher

Download files from a FTP only once.

Parameters

  • -t, --threads: The number of threads (downloaders) to use (default `1`).

  • -p, --properties: The settings file to use (see [Configuration file](#configuration-file)).

  • -db, --database: The h2Storage file (SQLite) to store the history of downloaded files (the history is reset after 15 days) (default: `./FTPFetcher.db`).

  • -bps, --bytesPerSecond: The max download speed for each thread (unlimited if not specified or if negative).

Configuration file

This is a JSON file following this pattern:

{
  "ftpHost": "url.to.ftp",
  "ftpUser": "user",
  "ftpPass": "password",
  "folders": [
    {
      "localFolder": "./my/local/folder",
      "ftpFolder": "/distant/folder",
      "recursive": true, // default: false
      "fileFilter": ".*\\.(jpg|mp4|mov)$", // default: ".*"
      "isFilenameDate": false, // default: true
      "deleteOnSuccess": true, // default: false
      "filePermissions": "rwxrwxrwx" // default: null
    }
  ]
}