0.0
No release in over a year
Backup local files or directories to S3. After initial upload, only updated items will be synced.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0
~> 1.21

Runtime

~> 3.0
~> 3.1
~> 1.21
 Project Readme

WaterWheel

Gem Version RSpec

Backup your local files or directories into cloud storages.

Now AWS S3 (Simple Storage Service) is only available.

Installation

Add this line to your application's Gemfile:

gem "water_wheel"

And then execute:

$ bundle install

Or install it yourself as:

$ gem install water_wheel

Usage

  1. Create a new S3 bucket for backup.

  2. add require "water_wheel" to your application or ruby script.

  3. Setting water_wheel gem with your AWS credential.

    WaterWheel.configure do |config|
      config.provider = "AWS"
      config.aws_access_key_id = "your_access_key_id"
      config.aws_secret_access_key = "your_secret_access_key"
      config.aws_region = "your_region"
      config.aws_bucket_name = "your_bucket_name"
      config.absolute_path_on_files = ["/path/to/your/files", "/path/to/your/other/files"]
      config.absolute_path_on_directories = ["/path/to/your/directories", "/path/to/your/other/directories"]
      config.ordered_omit_path_prefixes = ["/path/prefix/to/omit"]
      config.storage_class = "STANDARD" # STANDARD, REDUCED_REDUNDANCY, STANDARD_IA...
      config.parallel_count = 3
      config.dry_run = false
    end
    • You can change upload parallel thread count by parallel_count setting. Default is 3.
    • if you'd like to do a dry run, set config.dry_run = true
  4. Run, and you will see the result.

    WaterWheel::Backup.on

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/shoutatani/water_wheel. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the WaterWheel project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.