Added automatic backups to caching script.