Installation from binary¶
Download¶
FTPGrab binaries are available on releases page.
Choose the archive matching the destination platform:
ftpgrab_7.9.0_darwin_amd64.tar.gz
ftpgrab_7.9.0_darwin_arm64.tar.gz
ftpgrab_7.9.0_freebsd_386.tar.gz
ftpgrab_7.9.0_freebsd_amd64.tar.gz
ftpgrab_7.9.0_linux_386.tar.gz
ftpgrab_7.9.0_linux_amd64.tar.gz
ftpgrab_7.9.0_linux_arm64.tar.gz
ftpgrab_7.9.0_linux_armv5.tar.gz
ftpgrab_7.9.0_linux_armv6.tar.gz
ftpgrab_7.9.0_linux_armv7.tar.gz
ftpgrab_7.9.0_linux_ppc64le.tar.gz
ftpgrab_7.9.0_linux_riscv64.tar.gz
ftpgrab_7.9.0_linux_s390x.tar.gz
ftpgrab_7.9.0_windows_386.zip
ftpgrab_7.9.0_windows_amd64.zip
ftpgrab_7.9.0_windows_arm64.zip
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:
1. Creating a service file (recommended)¶
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.
Created: 2020-07-07 20:06:09