KEEPSQLSECOND=50 # how many MySQL dumps to keep in second dir? KEEPSQLORIG=15 # how many MySQL dumps to keep in original dir? KEEPSECOND=30 # how many backups to keep in second dir? KEEPORIG=6 # how many backups to keep in original dir? It runs daily automatically via cron on my machine.Īnd I think it’s quite good and I thought it might come in handy as a base for someone else’s script. It also automatically prunes out old backups and deletes them (you set a specified number of backups that you want to keep in each folder). But it gets better – it also copies the backups to another location (on a different physical disk) for redundancy. It backs up everything in the Apache document root, all my virtual hosts directories and also does a MySQL dump, before saving all three of those files (date in the filename) in a specified directory. In theory this also works the other way round, by using -thin ppc, but I haven’t tried it.įor my own server setup on my machine, I’ve just finished a better version of my automated backup script. It should run fine and save you a bit of disc space! If you now do a Get Info on the app, you should see the kind will be Application (Intel). $ mv temp /Applications/Camino.app/Contents/MacOS/Camino $ rm /Applications/Camino.app/Contents/MacOS/Camino Now head to the Terminal and do the following (in this example, I use Camino, so substitute in the name of the app you’re using): $ lipo -thin i386 /Applications/Camino.app/Contents/MacOS/Camino -output temp The functionality to do this is built right in to Mac OS X.įirst of all, make a backup copy of any application you want to mess around with here. There’s actually a shareware app called Xslimmer that will strip the PPC binary out of your applications and slim them down, but I just discovered that you don’t need it. The bad thing about them is that they take up a lot of disc space, because they contain both the PowerPC code and the Intel code. Universal binary applications on Mac OS X are great, because it means they run natively on both older PowerPC Macs and newer Intel Macs natively.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |