Skip to content

Instantly share code, notes, and snippets.

Avatar

Tristan Bessoussa tristanbes

View GitHub Profile
@tristanbes
tristanbes / snapshot.sh
Created Aug 29, 2017 — forked from danharper83/snapshot.sh
Creates a snapshot on platform using platform commands
View snapshot.sh
#!/usr/bin/env bash
ORIGIN="develop"
TARGET="master"
if [ "$PLATFORM_BRANCH" = "$ORIGIN" ]; then
/app/.platformsh/bin/platform self-update -y -q
/app/.platformsh/bin/platform backup -y -q -p $PLATFORM_PROJECT -e $TARGET
fi
You can’t perform that action at this time.