Skip to content

Instantly share code, notes, and snippets.

@danharper83
Created August 29, 2017 09:56
Show Gist options
  • Select an option

  • Save danharper83/b008acf99f88e09b9ac75397765534e3 to your computer and use it in GitHub Desktop.

Select an option

Save danharper83/b008acf99f88e09b9ac75397765534e3 to your computer and use it in GitHub Desktop.

Revisions

  1. danharper83 created this gist Aug 29, 2017.
    7 changes: 7 additions & 0 deletions snapshot.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #!/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