Skip to content

Installation from binary

Download

FTPGrab binaries are available on releases page.

Choose the archive matching the destination platform:

And extract FTPGrab:

wget -qO- https://github.com/crazy-max/ftpgrabreleases/download/v7.9.0/ftpgrab_7.9.0_linux_amd64.tar.gz | tar -zxvf - ftpgrab

After getting the binary, it can be tested with ./ftpgrab --help command and moved to a permanent location.

Server configuration

Steps below are the recommended server configuration.

Prepare environment

Create user to run FTPGrab (ex. ftpgrab)

groupadd ftpgrab
useradd -s /bin/false -d /bin/null -g ftpgrab ftpgrab

Create required directory structure

mkdir -p /var/lib/ftpgrab
chown ftpgrab:ftpgrab /var/lib/ftpgrab/
chmod -R 750 /var/lib/ftpgrab/
mkdir /etc/ftpgrab
chown ftpgrab:ftpgrab /etc/ftpgrab
chmod 770 /etc/ftpgrab

Configuration

Create your first configuration file in /etc/ftpgrab/ftpgrab.yml and type:

chown ftpgrab:ftpgrab /etc/ftpgrab/ftpgrab.yml
chmod 644 /etc/ftpgrab/ftpgrab.yml

Copy binary to global location

cp ftpgrab /usr/local/bin/ftpgrab

Running FTPGrab

After the above steps, two options to run FTPGrab:

See how to create Linux service to start FTPGrab automatically.

2. Running from terminal

FTPGRAB_DB_PATH=/var/lib/ftpgrab/ftpgrab.db /usr/local/bin/ftpgrab \
  --config /etc/ftpgrab/ftpgrab.yml \
  --schedule "*/30 * * * *"

Updating to a new version

You can update to a new version of FTPGrab by stopping it, replacing the binary at /usr/local/bin/ftpgrab and restarting the instance.

If you have carried out the installation steps as described above, the binary should have the generic name ftpgrab. Do not change this, i.e. to include the version number.


Last update: 2021-08-21 20:29:48
Created: 2020-07-07 20:06:09