Skip to content

Instantly share code, notes, and snippets.

@thecancerus
Created July 23, 2020 17:55
Show Gist options
  • Save thecancerus/0b317fa715464bd5638217a2ec178c5c to your computer and use it in GitHub Desktop.
Save thecancerus/0b317fa715464bd5638217a2ec178c5c to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Back up Script to Amazon S3
# Source:
# Author: Amit
#create array of sites based on folder names
SITELIST=($(ee site list --enabled | sed 's/\x1b\[[0-9;]*[a-zA-Z]//g'))
for SITE in ${SITELIST[@]}; do
ee site info $SITE
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment