A
A
Anton Misyagin2015-12-01 13:22:34
Ruby on Rails
Anton Misyagin, 2015-12-01 13:22:34

What is the backup gem config file format?

ubuntu server 14 x64, rails 4.2.5, ruby ​​2.1.5p273 [x86_64-linux], backup 4.2.0
user: deployer
gem install backup -v '4.2.0'

Done installing documentation for xml-simple, unf_ext, unf, addressable, buftok, descendants_tracker, equalizer, multipart-post, faraday, http_parser.rb, http, json, atomic, thread_safe, memoizable, simple_oauth, twitter, polyglot, treetop, thor, pagerduty, open4, net-sftp, multi_json, mime-types, mail, httparty, hipch at, excon, fog-core, fog-xml, fog-voxel, CFPropertyList, fog-vmfusion, fog-terre mark, fog-json, fog-storm_on_demand, fog-softlayer, fog-serverlove, fog-sakuracl oud, fog-radosgw, fog-profitbricks, fog-ecloud, fog-brightbox, fog-aws, fog, flo wdock, dropbox-sdk, dogapi, aws- ses, backup after 640 seconds
51 gems installed

gem list backup
*** LOCAL GEMS ***
backup (4.2.0)

backup.rb:
Model.new(:backup, 'Description for my_backup') do
  archive :logs do |archive|
    archive.add 'logs/production/production.log'
  end

  store_with Local do |local|
    local.path       = "~/backups/"
    local.keep       = 5
  end

  compress_with Gzip
end

backup perform -t backup
[2015/12/01 10:12:22][error] CLI::Error
[2015/12/01 10:12:22][error] --- Wrapped Exception ---
[2015/12/01 10: 12:22][error] Config::Error: Could not find configuration file: ' /home/deployer/Backup/config.rb'.

Why didn't it form there, if it should be there at all? What's in it by default? Is there a description of the settings for it? I'm talking about config.rb. I was looking for here
gem environment
RubyGems Environment:
- RUBYGEMS VERSION: 2.4.3
- RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [x86_64-linux]
- INSTALLATION DIRECTORY: /home/deployer/.rvm/gems/ruby-2.1.5
- RUBY EXECUTABLE: /usr/share/rvm/rubies/ruby-2.1.5/bin/ruby
- EXECUTABLE DIRECTORY: /home/deployer/.rvm/gems/ruby-2.1.5/bin
- SPEC CACHE DIRECTORY: /home /deployer/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /etc
- RUBYGEMS PLATFORMS:
- ruby
​​- x86_64-linux
- GEM PATHS:
- /home/deployer/.rvm/gems/ruby-2.1.5
- /home/deployer/ .rvm/gems/[email protected]
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /home/deployer/.rvm/gems/ruby-2.1.5/bin
- /home/deployer/.rvm/gems/[email protected]/bin
- /usr/share/rvm/rubies/ruby- 2.1.5/bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
- /usr/games
- /usr/local/games
- /usr /share/rvm/bin

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Misyagin, 2015-12-01
@sunnmas

backup -h

Commands:
backup check # Check for configuration errors or warnings
backup generate:config # Generates the main Backup configuration file
backup generate:model -t, --trigger=TRIGGER # Generates a Backup model file.
backup help [COMMAND] # Describe available commands or one specific...
backup perform -t, --triggers, --trigger=TRIGGER # Performs the backup for the specified trigg...
backup version # Display installed Backup version
# Check for configuration errors or warnings
[2015/12/01 10:45:45][info] Configuration Check Succeeded.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question