# 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). * Tested with [Node.js v8 LTS](https://nodejs.org/en/). ## Install and unit test First, install Node.js runtime ([Linux download](https://nodejs.org/dist/latest-v8.x/node-v8.14.0-linux-x64.tar.xz), [Windows download](https://nodejs.org/dist/latest-v8.x/node-v8.14.0-x64.msi), [SHAsums](https://nodejs.org/dist/latest-v8.x/SHASUMS256.txt)). Next, clone this repository, enter its top-level directory, and install the required NPM modules: ```bash cd recfu-mover npm install npm test ``` Next, 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 node app.js ``` 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 node app.js >> /path/to/recfu-mover.log 2>&1 ```