Giter VIP home page Giter VIP logo

salesforce2pg's Introduction

simlpe-salesforce-postgres

Automatic, timed data Sync from salesforce to PostgreSQL using, simple-salesforce

The tool consists of

  • PostgreSQL sql setup script - execute this first, adopt if required
  • sample sql script to fill the configs in PostgreSQL - adopt and extend where required
  • sf.py file which provides the Salesforce connection cursor.
  • pg.py file which provides the PostgreSQL connection cursor. Adopt your pg_hba.conf as suggested below or adopt the postgresql credentials there.
  • sync.py - python script to migrate the data
  • salesforce_sync.service/.timer - systemd service and timer files The scripts are created in a way to be managed by SystemD directly, which takes care about keeping them alive, restarting on timer, tracking status of sync. Check

Setup:

setup scripts

  • execute setup.sql in postgres, check if you need to adopt anything
  • adopt and execute sample_config.sql

copy Files

copy all files to directory, which is configured in systemd service. predefined directory is: /var/lib/salesforce2pg/

SystemD Timer

  • please google for instal instructions of systemd services and timers for your distro, please fix the path in service file according to your requirements
  • enable the timer ex: systemctl enable salesforce_sync.timer;
  • start the timer, ex: systemctl start salesforce_sync.timer;

component overview

functions and tables

salesforce2pg's People

Contributors

karlodun avatar

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.