Requirements

Installation

For the installation you need to be root or sudoer :

$ apt-get install gawk curl wget mailutils
$ mkdir -p /opt/ftpgrab/conf /var/log/ftpgrab /var/run/ftpgrab
$ wget https://raw.github.com/ftpgrab/ftpgrab/master/ftpgrab.sh -O /etc/init.d/ftpgrab --no-check-certificate
$ chmod +x /etc/init.d/ftpgrab
$ wget https://raw.github.com/ftpgrab/ftpgrab/master/ftpgrab.conf -O /opt/ftpgrab/ftpgrab.conf --no-check-certificate

FTPGrab can be run multiple times depending on the number of config files.

Before running the script, you must create your first config file. Read the Configuration page for more info.

Usage

$ /etc/init.d/ftpgrab <CONFIG_FILE>

CONFIG_FILE is a config file located in /opt/ftpgrab/conf.
ex. $ /etc/init.d/ftpgrab seedbox.conf

Automatic grab with cron

You can automatically grab FTP files by calling the script in a crontab.
For example :

0 4 * * * cd /etc/init.d/ && ./ftpgrab seedbox.conf >/dev/null 2>&1

This will grab your FTP files using the config file seedbox.conf every day at 4 am.

Upgrade

All instructions to upgrade from a previous release are added in the Upgrade notes page.