FredHutch/sftp_downloader

Name: sftp_downloader

Owner: Fred Hutchinson Cancer Research Center

Description: script for downloading files from server in Perú

Created: 2018-01-12 19:32:44.0

Updated: 2018-01-12 19:40:00.0

Pushed: 2018-01-13 03:37:25.0

Homepage: null

Size: 15

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

SFTP Downloader Script

This script will download a file (if present) from the SFTP server in Perú.

It is designed to be run daily via crontab.

Installation

You only have to run these steps once.

Run the following steps in your home directory on rhino1 (ssh rhino1).

clone https://github.com/FredHutch/sftp_downloader.git
ftp_downloader
ython/3.6.4-foss-2016b-fh1
nv install
eate a configuration file from a template:
onfig.json.example config.json

w edit config.json to add the username, password, etc., of
e SFTP server.

ke a note of the current directory:


Using the crontab -e command (and your favorite text-based editor), add a line like the following to your crontab, replacing MYUSERNAME with your HutchNet ID.

L=/bin/bash
3 * * * /home/MYUSERNAME/sftp_downloader/sftp_downloader.sh >> /home/MYUSERNAME/sftp_downloader/sftp_downloader.log 2>&1

The script will now run every day at 1:15PM (1315 hours).

It will append to the log file /home/MYUSERNAME/sftp_downloader/sftp_downloader.log. If the files do not show up as expected, check this file for error information.

Problems

Contact Dan or scicomp@fredhutch.org.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.