Giter Club home page Giter Club logo

gis-sync's Introduction

gis-sync

tools to sync data between AIESEC's global information system and the national systems of AIESEC in Germany

Requirements

  • python2.7
  • pip
  • simple-salesforce & certifi

Installation (Debian)

  • Install requirements
apt-get install python-pip
pip install simple-salesforce
pip install certifi
  • clone source code cd /opt && git clone https://github.com/AIESECGermany/gis-sync.git
  • add system user to run sync useradd -s /usr/sbin/nologin gis-sync
  • setup credentials
cd /opt/gis-sync
cp credentials_store.example.py credentials_store.py
nano credentials_store.py
  • chown -R gis-sync:nogroup /opt/gis-sync
  • chmod -R 700 /opt/gis-sync
  • setup cronjob nano /etc/cron.d/gissync
SHELL=/bin/bash
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

2-59/10 0-1 * * * gis-sync cd /opt/gis-sync && python sync.py > /dev/null
2-59/10 4-23 * * * gis-sync cd /opt/gis-sync && python sync.py > /dev/null
5 2 * * * gis-sync cd /opt/gis-sync && python sync.py daily > /dev/null
  • service cron reload

Setup logrotate (Debian)

  • nano /etc/logrotate.d/gis-sync
/opt/gis-sync/expa_sync.log {
    daily
    missingok
    rotate 7
    compress
    notifempty
}

setup munin plugin (Debian)

  • cp /opt/gis-sync/munin/gis-sync /etc/munin/plugins/
  • chmod +x /etc/munin/plusing/gis-sync
  • add the following lines to the munin-node config (nano /etc/munin/plugin-conf.d/munin-node)
[gis-sync]
user gis-sync

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.