Backup v3.x is distributed using RubyGems and supports Ruby versions 1.8.7 and 1.9.2.

Note: Ruby versions 1.9.3 and 2.0.0 are also supported, but you should use Backup 4.x.

To install the latest version, run:

$ gem install backup

This will install Backup, along with all of it’s required dependencies.

See Release Notes for changes in the latest version.

Using Bundler

Do not add gem backup to another application’s Gemfile. Backup is not a gem library and should not be treated as a dependency of another application. Bundler can be used to manage an installation of Backup, but the reasons for why you might want to do this is beyond the scope of this document.

Using sudo

The gem commands shown here may need to be run using sudo, depending on how Ruby is installed on your system. If you’re using RVM, rbenv or chruby, then you would most likely not want to use sudo. However, if your installation of Ruby came with your system, or was installed using your system’s package manager (yum, apt, etc…), then you most likely need to use sudo. For example, running gem install backup as a non-root user with a system installed Ruby would install Backup only for that user’s use. This may or may not be what you want.


To update Backup to the latest version, run:

$ gem install backup

Changes in the latest version may be found on the Release Notes page.

If you wish to install a specific version of Backup, you can specify the version as follows:

# Install version 3.1.0
$ gem install backup -v '3.1.0'

# Install the latest 3.1.x version
$ gem install backup -v '~> 3.1.0'

# Install the latest 3.x version
$ gem install backup -v '~> 3.0'

When you update Backup, the new version of the Backup gem will be installed, but older versions are not removed. If you were to install Backup at version 3.1.0, then update to 3.2.0, both will exist on your system.

$ gem list backup

*** LOCAL GEMS ***

backup (3.1.0, 3.2.0)

The same is true for any of Backup’s gem dependencies. This is normal and how the RubyGems system works. When you run backup it will always load the latest version.

$ backup version
Backup 3.2.0

You can clean up old versions using gem cleanup.

$ gem cleanup backup
Cleaning up installed gems...
Attempting to uninstall backup-3.1.0
Successfully uninstalled backup-3.1.0
Clean Up Complete

gem cleanup may be used to remove old versions of Backup’s dependencies as well.