Last active
October 16, 2019 05:58
-
-
Save careydayrit/2e6b606c67d235a24a3e1f2bc79155a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
terminus backup:create dayrit.live --element=db | |
terminus backup:create dayrit.live --element=code | |
terminus backup:create dayrit.live --element=files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terminus site:list --format=csv --fields="name,frozen"| grep "false" |awk -F"," '{print $1}' | tail -n5 | while read -r LINE;do echo "$LINE.dev"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FWIW, this is what I think I'm gonna use right now... SITES=terminus site:list --org=$ORG_UUID --format=json | jq -c '.[] | select(.plan_name | contains("Sandbox") | not) | select(.frozen == false) | .name' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment