Skip to content

Instantly share code, notes, and snippets.

@s3w47m88
Created September 4, 2017 21:30
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 s3w47m88/9ae663f26ee4c5b2aff8f64a501ecd6c to your computer and use it in GitHub Desktop.
Save s3w47m88/9ae663f26ee4c5b2aff8f64a501ecd6c to your computer and use it in GitHub Desktop.
Bedrock Sync Databases
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ ls
sync-database.sh
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ sh sync-database.sh production-development
usage: sync-database.sh development production | development staging | production development | production staging
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ sh sync-database.sh production development
Would you really like to reset the development database and sync down from production? [y/N] y
sync-database.sh: 25: sync-database.sh: Syntax error: "(" unexpected (expecting "then")
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ pwd
/home/s3w47m88/Sites/kangapestcontrol.com/site/scripts
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ ls
sync-database.sh
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ sh sync-database.sh production development
Would you really like to reset the development database and sync down from production? [y/N] y
sync-database.sh: 25: sync-database.sh: Syntax error: "(" unexpected (expecting "then")
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$ sh sync-database.sh production development
Would you really like to reset the development database and sync down from production? [y/N] y
sync-database.sh: 25: sync-database.sh: Syntax error: "(" unexpected (expecting "then")
s3w47m88@spencer-hill-ubuntu:~/Sites/kangapestcontrol.com/site/scripts$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment