The new MacOsX Mavericks is free! It is a Huge 5.31 GB download.
Usually when there is an OS upgrade I always keep a backup in case I want to create a bootable standalone DVD or USB. You have to save before running the install!
Go to your Application folder and backup Install OS X Mavericks.app