Skip to content

RakambdaOrg/FTPFetcher

Repository files navigation

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
    }
  ]
}

About

Download files from a FTP server

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages