Skip to content

Instantly share code, notes, and snippets.

View whoisemiliano's full-sized avatar
👨‍💻

Emiliano Rodríguez whoisemiliano

👨‍💻
View GitHub Profile
@whoisemiliano
whoisemiliano / backup.sh
Created April 2, 2025 19:26
This script backs up all data from your Salesforce org
#!/bin/bash
# This script backs up all data from your Salesforce org.
# It creates a folder with today’s date and exports each sObject’s data into a CSV file.
#
# Requirements:
# - Salesforce CLI https://developer.salesforce.com/tools/salesforcecli (for sf connection and commands)
# - jq https://jqlang.org/ (for parsing JSON output)
#
# Usage: bash backup.sh <org_alias>
# Make sure you are authenticated to the target org.

Keybase proof

I hereby claim:

  • I am erodriguezramirez on github.
  • I am erodriguez (https://keybase.io/erodriguez) on keybase.
  • I have a public key ASC-SIHDvuIH5hiIJP10unsUt3ZQYPyDYvo10XNhXlAFDQo

To claim this, I am signing this object: