Skip to content

Instantly share code, notes, and snippets.

@andyg5000
Last active August 29, 2015 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyg5000/fef33632824ade2c853f to your computer and use it in GitHub Desktop.
Save andyg5000/fef33632824ade2c853f to your computer and use it in GitHub Desktop.
Platform.sh automated master backup
#!/bin/bash
SITES=$(~/.composer/vendor/bin/platform projects --pipe)
for i in $SITES;
do
~/.composer/vendor/bin/platform environment:backup --project $i --environment master
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment