Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
remove staging backup
Browse files Browse the repository at this point in the history
  • Loading branch information
PanfilovDenis committed Feb 19, 2013
1 parent 02f9d21 commit bd825ab
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 56 deletions.
52 changes: 0 additions & 52 deletions config/backup.rb

This file was deleted.

47 changes: 47 additions & 0 deletions config/backup.rb.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# encoding: utf-8

##
# Backup Generated: backup
# Once configured, you can run the backup with the following command:
#
# $ backup perform -t backup [-c <path_to_configuration_file>]
#
Backup::Model.new(:nastachku_staging, 'Nastachku staging backup') do

database PostgreSQL do |db|
db.name = "nastachku_staging"
db.username = "nastachku_staging"
db.password = "password"
end

store_with Local do |local|
local.path = "/var/tmp/"
local.keep = 5
end

compress_with Gzip do |compression|
compression.best = true
compression.fast = false
end

end

Backup::Model.new(:nastachku_production, 'Nastachku production backup') do

database PostgreSQL do |db|
db.name = "nastachku_production"
db.username = "nastachku_production"
db.password = "password"
end

store_with Local do |local|
local.path = "/var/tmp/"
local.keep = 18
end

compress_with Gzip do |compression|
compression.best = true
compression.fast = false
end

end
3 changes: 0 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
require 'capistrano/ext/multistage'
require 'airbrake/capistrano'

set :whenever_command, "bundle exec whenever"
require "whenever/capistrano"

set :application, "nastachku"
set :rvm_type, :system

Expand Down
5 changes: 4 additions & 1 deletion config/deploy/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@

role :web, '62.76.184.142'
role :app, '62.76.184.142'
role :db, '62.76.184.142', :primary => true
role :db, '62.76.184.142', :primary => true

set :whenever_command, "bundle exec whenever"
require "whenever/capistrano"

0 comments on commit bd825ab

Please sign in to comment.