Last active
August 29, 2015 14:10
-
-
Save yetanothernguyen/139a0d4ee70706b2394d to your computer and use it in GitHub Desktop.
Backup gem config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
## | |
# Backup Generated: 8share_backup | |
# Once configured, you can run the backup with the following command: | |
# | |
# $ backup perform -t backup [-c <path_to_configuration_file>] | |
# | |
# For more information about Backup's components, see the documentation at: | |
# http://meskyanichi.github.io/backup | |
# | |
Model.new(:backup, 'Database backup') do | |
## | |
# MySQL [Database] | |
# | |
database MySQL do |db| | |
# To dump all databases, set `db.name = :all` (or leave blank) | |
db.backup_engine = :innobackupex | |
db.name = :all | |
db.username = "root" | |
db.password = "root" | |
db.host = "localhost" | |
db.port = 3306 | |
db.socket = "/var/run/mysqld/mysqld.sock" | |
# Note: when using `skip_tables` with the `db.name = :all` option, | |
# table names should be prefixed with a database name. | |
# e.g. ["db_name.table_to_skip", ...] | |
#db.skip_tables = ["skip", "these", "tables"] | |
#db.only_tables = ["only", "these", "tables"] | |
db.verbose = false | |
end | |
## | |
# Amazon Simple Storage Service [Storage] | |
# | |
store_with S3 do |s3| | |
# AWS Credentials | |
s3.access_key_id = "access_key_id" | |
s3.secret_access_key = "secret_access_key" | |
# Or, to use a IAM Profile: | |
# s3.use_iam_profile = true | |
s3.region = "ap-northeast-1" | |
s3.bucket = "bucket" | |
s3.path = "/" | |
end | |
## | |
# Gzip [Compressor] | |
# | |
compress_with Gzip | |
## | |
# Mail [Notifier] | |
# | |
# The default delivery method for Mail Notifiers is 'SMTP'. | |
# See the documentation for other delivery options. | |
# | |
notify_by Mail do |mail| | |
mail.on_success = false | |
mail.on_warning = false | |
mail.on_failure = true | |
mail.from = "sender@email.com" | |
mail.to = "receiver@email.com" | |
mail.address = "smtp.gmail.com" | |
mail.port = 587 | |
mail.domain = "your.host.name" | |
mail.user_name = "sender@email.com" | |
mail.password = "my_password" | |
mail.authentication = "plain" | |
mail.encryption = :starttls | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment