Yet another one DevOps blog

Ops and DevOps stories

Apr 24, 2014 - 4 minute read - Comments - technical aws amazon chef devops ruby backup

Backup gem and Chef


  • There’s a nice tool for doing fast and easy backup to AWS S3: backup gem
  • There should be done a lot of steps for setup a backup though.
  • So it could be automated with chef.
  • In this article I’ll write log of creation backup gem’s cookbook.
  • Essentially this cookbook will install backup gem, that will backup /var/www folder to AWS S3 every day in 01:00. It will store last 14 backups.

Jan 25, 2014 - 1 minute read - Comments - technical git amazon ruby

Rewriting your email in git commits

Sometimes you need to rewrite your email in your commits in some git repository. Do it with command: git filter-branch --env-filter 'if [ $GIT_AUTHOR_EMAIL = bad@email ]; then GIT_AUTHOR_EMAIL=correct@email; fi; export GIT_AUTHOR_EMAIL' For your collaborators this operatioin might be dangerous. According to Jakub Narębski collaborators will need to: if they didn’t base their work on history pre-rewrite, just git reset --hard origin/master or just git pull origin (which should fast-forward).