Skip to content

Commit

Permalink
Consistent quotations in template files. More descriptive comment blo…
Browse files Browse the repository at this point in the history
…cks for Dropbox and Rackspace Cloud Files.
  • Loading branch information
Michael van Rooijen committed Jan 31, 2012
1 parent e9f9980 commit b4ac497
Show file tree
Hide file tree
Showing 21 changed files with 116 additions and 89 deletions.
28 changes: 20 additions & 8 deletions templates/cli/utility/archive
@@ -1,13 +1,25 @@
##
# Archive [Archive]
#
# Adding a file:
#
# archive.add "/path/to/a/file.rb"
#
# Adding an directory (including sub-directories):
#
# archive.add "/path/to/a/directory/"
#
# Excluding a file:
#
# archive.exclude "/path/to/an/excluded_file.rb"
#
# Excluding a directory (including sub-directories):
#
# archive.exclude "/path/to/an/excluded_directory/
#
archive :my_archive do |archive|
# add a file
archive.add '/path/to/a/file.rb'
# add a folder (including sub-folders)
archive.add '/path/to/a/folder/'
# exclude a file
archive.exclude '/path/to/a/excluded_file.rb'
# exclude a folder (including sub-folders)
archive.exclude '/path/to/a/excluded_folder/'
archive.add "/path/to/a/file.rb"
archive.add "/path/to/a/folder/"
archive.exclude "/path/to/a/excluded_file.rb"
archive.exclude "/path/to/a/excluded_folder/"
end
6 changes: 3 additions & 3 deletions templates/cli/utility/database/mongodb
Expand Up @@ -8,11 +8,11 @@
db.host = "localhost"
db.port = 5432
db.ipv6 = false
db.only_collections = ['only', 'these' 'collections']
db.only_collections = ["only", "these" "collections"]
db.additional_options = []
db.lock = false
# Optional: Use to set the location of these utilities
# if they cannot be found by their name in your $PATH
# db.mongodump_utility = '/opt/local/bin/mongodump'
# db.mongo_utility = '/opt/local/bin/mongo'
# db.mongodump_utility = "/opt/local/bin/mongodump"
# db.mongo_utility = "/opt/local/bin/mongo"
end
8 changes: 4 additions & 4 deletions templates/cli/utility/database/mysql
Expand Up @@ -8,10 +8,10 @@
db.host = "localhost"
db.port = 3306
db.socket = "/tmp/mysql.sock"
db.skip_tables = ['skip', 'these', 'tables']
db.only_tables = ['only', 'these' 'tables']
db.additional_options = ['--quick', '--single-transaction']
db.skip_tables = ["skip", "these", "tables"]
db.only_tables = ["only", "these" "tables"]
db.additional_options = ["--quick", "--single-transaction"]
# Optional: Use to set the location of this utility
# if it cannot be found by name in your $PATH
# db.mysqldump_utility = '/opt/local/bin/mysqldump'
# db.mysqldump_utility = "/opt/local/bin/mysqldump"
end
8 changes: 4 additions & 4 deletions templates/cli/utility/database/postgresql
Expand Up @@ -8,10 +8,10 @@
db.host = "localhost"
db.port = 5432
db.socket = "/tmp/pg.sock"
db.skip_tables = ['skip', 'these', 'tables']
db.only_tables = ['only', 'these' 'tables']
db.additional_options = ['-xc', '-E=utf8']
db.skip_tables = ["skip", "these", "tables"]
db.only_tables = ["only", "these" "tables"]
db.additional_options = ["-xc", "-E=utf8"]
# Optional: Use to set the location of this utility
# if it cannot be found by name in your $PATH
# db.pg_dump_utility = '/opt/local/bin/pg_dump'
# db.pg_dump_utility = "/opt/local/bin/pg_dump"
end
2 changes: 1 addition & 1 deletion templates/cli/utility/database/redis
Expand Up @@ -12,5 +12,5 @@
db.invoke_save = true
# Optional: Use to set the location of this utility
# if it cannot be found by name in your $PATH
# db.redis_cli_utility = '/opt/local/bin/redis-cli'
# db.redis_cli_utility = "/opt/local/bin/redis-cli"
end
4 changes: 2 additions & 2 deletions templates/cli/utility/encryptor/openssl
Expand Up @@ -2,8 +2,8 @@
# OpenSSL [Encryptor]
#
encrypt_with OpenSSL do |encryption|
encryption.password = 'my_password' # From String
encryption.password_file = '/path/to/password/file' # Or from File
encryption.password = "my_password" # From String
encryption.password_file = "/path/to/password/file" # Or from File
encryption.base64 = true
encryption.salt = true
end
6 changes: 3 additions & 3 deletions templates/cli/utility/notifier/campfire
Expand Up @@ -6,7 +6,7 @@
campfire.on_warning = true
campfire.on_failure = true

campfire.api_token = 'my_api_authentication_token'
campfire.subdomain = 'my_subdomain'
campfire.room_id = 'my_room_id'
campfire.api_token = "my_api_authentication_token"
campfire.subdomain = "my_subdomain"
campfire.room_id = "my_room_id"
end
12 changes: 6 additions & 6 deletions templates/cli/utility/notifier/hipchat
Expand Up @@ -6,10 +6,10 @@
hipchat.on_warning = true
hipchat.on_failure = true

hipchat.token = 'token'
hipchat.from = 'DB Backup'
hipchat.rooms_notified = ['activity']
hipchat.success_color = 'green'
hipchat.warning_color = 'yellow'
hipchat.failure_color = 'red'
hipchat.token = "token"
hipchat.from = "DB Backup"
hipchat.rooms_notified = ["activity"]
hipchat.success_color = "green"
hipchat.warning_color = "yellow"
hipchat.failure_color = "red"
end
14 changes: 7 additions & 7 deletions templates/cli/utility/notifier/mail
Expand Up @@ -10,13 +10,13 @@
mail.on_warning = true
mail.on_failure = true

mail.from = 'sender@email.com'
mail.to = 'receiver@email.com'
mail.address = 'smtp.gmail.com'
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.domain = "your.host.name"
mail.user_name = "sender@email.com"
mail.password = "my_password"
mail.authentication = "plain"
mail.enable_starttls_auto = true
end
8 changes: 4 additions & 4 deletions templates/cli/utility/notifier/presently
Expand Up @@ -6,8 +6,8 @@
presently.on_warning = true
presently.on_failure = true

presently.subdomain = 'my_subdomain'
presently.user_name = 'my_user_name'
presently.password = 'my_password'
presently.group_id = 'my_group_id' # optional
presently.subdomain = "my_subdomain"
presently.user_name = "my_user_name"
presently.password = "my_password"
presently.group_id = "my_group_id" # optional
end
4 changes: 2 additions & 2 deletions templates/cli/utility/notifier/prowl
Expand Up @@ -6,6 +6,6 @@
prowl.on_warning = true
prowl.on_failure = true

prowl.application = 'my_application'
prowl.api_key = 'my_api_key'
prowl.application = "my_application"
prowl.api_key = "my_api_key"
end
8 changes: 4 additions & 4 deletions templates/cli/utility/notifier/twitter
Expand Up @@ -6,8 +6,8 @@
tweet.on_warning = true
tweet.on_failure = true

tweet.consumer_key = 'my_consumer_key'
tweet.consumer_secret = 'my_consumer_secret'
tweet.oauth_token = 'my_oauth_token'
tweet.oauth_token_secret = 'my_oauth_token_secret'
tweet.consumer_key = "my_consumer_key"
tweet.consumer_secret = "my_consumer_secret"
tweet.oauth_token = "my_oauth_token"
tweet.oauth_token_secret = "my_oauth_token_secret"
end
20 changes: 15 additions & 5 deletions templates/cli/utility/storage/cloud_files
@@ -1,12 +1,22 @@
##
# Rackspace Cloud Files [Storage]
#
# Available Auth URLs:
#
# - https://auth.api.rackspacecloud.com (US - Default)
# - https://lon.auth.api.rackspacecloud.com (UK)
#
# Servicenet:
#
# Set this to 'true' if Backup runs on a Rackspace server. It will avoid
# transfer charges and it's more performant.
#
store_with CloudFiles do |cf|
cf.api_key = 'my_api_key'
cf.username = 'my_username'
cf.container = 'my_container'
cf.path = '/path/to/my/backups'
cf.api_key = "my_api_key"
cf.username = "my_username"
cf.container = "my_container"
cf.path = "/path/to/my/backups"
cf.keep = 5
cf.auth_url = 'lon.auth.api.rackspacecloud.com'
cf.auth_url = "lon.auth.api.rackspacecloud.com"
cf.servicenet = false
end
25 changes: 15 additions & 10 deletions templates/cli/utility/storage/dropbox
@@ -1,15 +1,20 @@
##
# Dropbox File Hosting Service [Storage]
# Note: Initial backup must be performed manually to authorize
# this machine with your Dropbox account.
#
# Access Type:
#
# - :app_folder (Default)
# - :dropbox
#
# Note:
#
# Initial backup must be performed manually to authorize
# this machine with your Dropbox account.
#
store_with Dropbox do |db|
db.api_key = 'my_api_key'
db.api_secret = 'my_api_secret'
# Dropbox Access Type
# The default value is :app_folder
# Change this to :dropbox if needed
# db.access_type = :dropbox
db.path = '/path/to/my/backups'
db.keep = 25
db.api_key = "my_api_key"
db.api_secret = "my_api_secret"
db.access_type = :app_folder
db.path = "/path/to/my/backups"
db.keep = 25
end
8 changes: 4 additions & 4 deletions templates/cli/utility/storage/ftp
Expand Up @@ -2,11 +2,11 @@
# FTP (File Transfer Protocol) [Storage]
#
store_with FTP do |server|
server.username = 'my_username'
server.password = 'my_password'
server.ip = '123.45.678.90'
server.username = "my_username"
server.password = "my_password"
server.ip = "123.45.678.90"
server.port = 21
server.path = '~/backups/'
server.path = "~/backups/"
server.keep = 5
server.passive_mode = false
end
2 changes: 1 addition & 1 deletion templates/cli/utility/storage/local
Expand Up @@ -2,6 +2,6 @@
# Local (Copy) [Storage]
#
store_with Local do |local|
local.path = '~/backups/'
local.path = "~/backups/"
local.keep = 5
end
6 changes: 3 additions & 3 deletions templates/cli/utility/storage/ninefold
Expand Up @@ -2,8 +2,8 @@
# Ninefold Cloud Storage [Storage]
#
store_with Ninefold do |nf|
nf.storage_token = 'my_storage_token'
nf.storage_secret = 'my_storage_secret'
nf.path = '/path/to/my/backups'
nf.storage_token = "my_storage_token"
nf.storage_secret = "my_storage_secret"
nf.path = "/path/to/my/backups"
nf.keep = 10
end
8 changes: 4 additions & 4 deletions templates/cli/utility/storage/rsync
Expand Up @@ -2,10 +2,10 @@
# RSync [Storage]
#
store_with RSync do |server|
server.username = 'my_username'
server.password = 'my_password'
server.ip = '123.45.678.90'
server.username = "my_username"
server.password = "my_password"
server.ip = "123.45.678.90"
server.port = 22
server.path = '~/backups/'
server.path = "~/backups/"
server.local = false
end
12 changes: 6 additions & 6 deletions templates/cli/utility/storage/s3
Expand Up @@ -10,10 +10,10 @@
# - us-west-1
#
store_with S3 do |s3|
s3.access_key_id = 'my_access_key_id'
s3.secret_access_key = 'my_secret_access_key'
s3.region = 'us-east-1'
s3.bucket = 'bucket-name'
s3.path = '/path/to/my/backups'
s3.keep = 10
s3.access_key_id = "my_access_key_id"
s3.secret_access_key = "my_secret_access_key"
s3.region = "us-east-1"
s3.bucket = "bucket-name"
s3.path = "/path/to/my/backups"
s3.keep = 10
end
8 changes: 4 additions & 4 deletions templates/cli/utility/storage/scp
Expand Up @@ -2,10 +2,10 @@
# SCP (Secure Copy) [Storage]
#
store_with SCP do |server|
server.username = 'my_username'
server.password = 'my_password'
server.ip = '123.45.678.90'
server.username = "my_username"
server.password = "my_password"
server.ip = "123.45.678.90"
server.port = 22
server.path = '~/backups/'
server.path = "~/backups/"
server.keep = 5
end
8 changes: 4 additions & 4 deletions templates/cli/utility/storage/sftp
Expand Up @@ -2,10 +2,10 @@
# SFTP (Secure File Transfer Protocol) [Storage]
#
store_with SFTP do |server|
server.username = 'my_username'
server.password = 'my_password'
server.ip = '123.45.678.90'
server.username = "my_username"
server.password = "my_password"
server.ip = "123.45.678.90"
server.port = 22
server.path = '~/backups/'
server.path = "~/backups/"
server.keep = 5
end

0 comments on commit b4ac497

Please sign in to comment.