setup/backup.rb in backup-2.3.2.pre3 vs setup/backup.rb in backup-2.3.2
- old
+ new
@@ -20,10 +20,11 @@
# - Archive
# - Custom
#
# STORAGE METHODS
# - S3 (Amazon)
+# - CF (Rackspace Cloud Files)
# - SCP (Remote Server)
# - FTP (Remote Server)
# - SFTP (Remote Server)
# - LOCAL (Local Server)
#
@@ -98,9 +99,36 @@
end
keep_backups 25
encrypt_with_password 'password'
notify false
+
+end
+
+
+# Initialize with:
+# sudo backup --run 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
+
+ encrypt_with_gpg_public_key <<-KEY
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.7 (Darwin)
+
+Your very long public key goes here
+-----END PGP PUBLIC KEY BLOCK-----
+KEY
end
# Initialize with:
\ No newline at end of file