Technology Insights

Shell Script To Compress Many Directories Into Many Separate tar.bzip2 Files

I needed to clean up a directory on a server that included numerous directories each with numerous files inside each directory. I decided to write a quick shell script that would archive with tar and then compress with bzip2. The shell script requires you pass in a variable which could technically just be “*” to include all directories in the directory you are running the script from. Below is the content of the script followed by an explanation of each line of the script that will archive and compress numerous directories by looping through each directory to create a .tar.bzip2 file.

Details
Technology Insights

List Of Changed Files Between WordPress 2.8.5 and WordPress 2.8.6

I have multiple sites I manage that run WordPress so I try to stay up to date on all of them. If you stay on op of upgrading WordPress then most of the updates are fairly easy and don’t require changing that many files. Instead of uploading the entire set of files again it is easiest to simply upload the modified files. This will allow you to not have to make all of your custom modifications again if you have made customizations to any core WordPress files. Customizing core WordPress files is something I try to stay away from but there are definitely situations where I have modified core files to accomplish various goals. Anyhow since I haven’t found a site that keeps a consistant list of changed WordPress files I am going to try to start providing a list for each upgrade on Question Defense from now on.

Details
Technology Insights

Get A List Of Files That Are Different In Multiple Directories On Windows

When upgrading web applications it can make life much easier to get a list of files that have changed since the last version. This way you only have to overwrite a small number of files so if you won’t have to make all of your customizations again. The best application to use on Windows to do this is WinDiff. WinDiff is a very lightweight application that does not require installation to run. Below are some screenshots of WinDiff, where to download WinDiff, and instructions on how to compare two directories of like files.

Details