Download files from a FTP only once.
-
-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).
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
}
]
}