[Skratchdot.]

Posts Tagged ‘Bash’:

When working in SVN, I have a batch script I’ve used in the past to create “DEPLOY” and “RESTORE” folders off of diffs between branches. The script will create a “DEPLOY” folder containing all added and modified files, and a “RESTORE” folder containing all modified files.

The purpose of this, is to deploy a set of files to a different environment. I can just copy the “DEPLOY” folder to any number of servers. If there is a bug that made it through QA, and we need to immediately rollback changes, we can just copy the “RESTORE” folder to all the same servers.

I just wrote a similar script for Git: Git-Diff-Build-Script

Tagged with: