Since I got bored I decided to make something for Minecraft, unfortunately it's in batch. I'm sure porting it over to shell script for Mac or Linux would be easy but I don't feel like doing that atm, yet I'm not lazy enough to not do this.
Restore script (Pastebin)Backup script (Pastebin)Backup script deletes minecraft-backup.jar (if there is one) and copies minecraft.jar to minecraft-backup.jar.
Restore script deletes minecraft.jar and copies minecraft-backup.jar to minecraft.jar.
This is useful when you're installing a mod. Let's say I install a mod on my already modded minecraft, but before I do I quickly run backup.bat. After it is done, I install the mod. Unfortunately it breaks minecraft, so instead of Force Updating and installing all my mods from scratch I just run restore.bat and get my old Minecraft back. Much faster than going to %appdata%, .minecraft, bin, ctrl+c minecraft.jar, ctrl+v minecraft.jar, opening with 7zip, googling every mod I had, etc. I just run the script and be on my way.
Feel free to change it to your likings.