Skip to content

FAQ

Timezone

By default, all interpretation and scheduling is done with your local timezone (TZ environment variable).

Cron schedule may also override the timezone to be interpreted in by providing an additional space-separated field at the beginning of the cron spec, of the form CRON_TZ=<timezone>:

ftpgrab --schedule "CRON_TZ=Asia/Tokyo */30 * * * *"

What kind of CRON expression can I use for scheduling?

A CRON expression represents a set of times, using 6 space-separated fields.

  • */30 * * * * will launch a job every 30 minutes.
  • */15 * * * * * will launch a job every 15 seconds.

More examples can be found on the official library documentation.

How to grab from multiple sources?

You can add multiple sources in the sources field of the configuration file:

ftp|sftp:
  ...
  sources:
    - /path1
    - /path2/folder

What Regexp semantic is used to filter inclusions/exclusions?

FTPGrab uses Compile to parse regular expressions. This means the regexp returns a match that begins as early as possible in the input (leftmost) like Perl, Python, and other implementations use. You can test your regular expression on regex101.com and select Golang flavor. Check this quick example.

How can I edit/remove some entries in the database?

FTPGrab currently uses the embedded key/value database bbolt.

You can use boltBrowser which is a GUI web-based explorer and editor or this CLI browser to remove some entries.


Last update: 2021-04-25 21:26:36
Created: 2020-07-07 20:06:09