Note: The default ITS GitLab runner is a shared resource and is subject to slowdowns during heavy usage.
You can run your own GitLab runner that is dedicated just to your group if you need to avoid processing delays.

README.md 933 Bytes
Newer Older
Erik Schwartz's avatar
Erik Schwartz committed
1
2
# recfu-mover

Erik Schwartz's avatar
Erik Schwartz committed
3
4
5
6
7
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).

Erik Schwartz's avatar
Reorg    
Erik Schwartz committed
8
## Install
Erik Schwartz's avatar
Erik Schwartz committed
9

Erik Schwartz's avatar
Erik Schwartz committed
10
11
12
13
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:
Erik Schwartz's avatar
Erik Schwartz committed
14
15
16
17
18
19
20

```bash
cp ./site-config/client.json.EXAMPLE ./site-config/client.json
```

.. and set `client.json` values as needed.

Erik Schwartz's avatar
Erik Schwartz committed
21
22
## Run

23
24
From this application's top-level directory, run the app using:

Erik Schwartz's avatar
Erik Schwartz committed
25
```bash
Erik Schwartz's avatar
Erik Schwartz committed
26
npm run download
Erik Schwartz's avatar
Erik Schwartz committed
27
```
28
29
30
31

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
Erik Schwartz's avatar
Erik Schwartz committed
32
npm run download >> /path/to/recfu-mover.log 2>&1
33
```