Skip to content

Instantly share code, notes, and snippets.

View Soundsphere's full-sized avatar
🎶
funky

Soundsphere

🎶
funky
View GitHub Profile
@Soundsphere
Soundsphere / SalesForceBackup.py
Last active May 28, 2018 15:32 — forked from mattkatz/SalesForceBackup.py
Simple python Script to backup a salesforce instance to csv files
from simple_salesforce import Salesforce, SalesforceMalformedRequest
from argparse import ArgumentParser
from csv import DictWriter
from datetime import date
from pathlib import Path
production_instance = 'yourinstance.salesforce.com'
parser = ArgumentParser(description="Backs up all Salesforce objects to csv files")
parser.add_argument("username", help="User to authenticate as. Should be part of an 'integration_user' profile or some profile with no ip range restriction")