Skip to content
Browse files

added cloudfiles example

  • Loading branch information...
1 parent d846c3d commit 0bfd1f16215dc43c7955616c3a7139642cc8576a @smith smith committed with meskyanichi Aug 27, 2010
Showing with 18 additions and 1 deletion.
  1. +18 −1 generators/backup/templates/config/backup.rb
View
19 generators/backup/templates/config/backup.rb
@@ -21,6 +21,7 @@
# - Custom
#
# STORAGE METHODS
+# - Rackspace Cloud Files
# - S3 (Amazon)
# - SCP (Remote Server)
# - FTP (Remote Server)
@@ -103,6 +104,22 @@
end
+# Initialize with:
+# rake backup:run trigger='mysql-backup-cloudfiles'
+backup 'mysql-backup-cloudfiles' do
+
+ adapter :mysql do
+ user 'user'
+ password 'password'
+ database 'database'
+ end
+
+ storage :cloudfiles do
+ username 'username'
+ api_key 'api_key'
+ container 'mysql_backup'
+ end
+end
# Initialize with:
# rake backup:run trigger='postgresql-backup-s3'
@@ -199,4 +216,4 @@
encrypt_with_password false
notify false
-end
+end

0 comments on commit 0bfd1f1

Please sign in to comment.
Something went wrong with that request. Please try again.