# recfu-mover Download files from IQ SFTP server to local filesystem. * Used for BO report delivery to Rec Fusion customers. * BO -> SFTP [project documentation](https://iqops.dsc.umich.edu/wiki/index.php/Transfer_files_from_BO_to_IQ_SFTP_server). ## Install 1. Install [Node.js v14 LTS](https://nodejs.org/en/download/) 2. Clone this repo and cd to its top-level directory 3. Install required packages: `npm ci --production && npm audit fix` 4. Copy the example configuration: ```bash cp ./site-config/client.json.EXAMPLE ./site-config/client.json ``` .. and set `client.json` values as needed. ## Run From this application's top-level directory, run the app using: ```bash npm run download ``` For scheduled runs of this application (through cron or Windows' Scheduled Tasks) it may be useful to redirect program output to a log file for later review, e.g.: ```bash npm run download >> /path/to/recfu-mover.log 2>&1 ```