Browse files

Releasing version 2.4.1!

Updated README. Bumped Gemspec to version 2.4.1. Updated both backup configuration templates.
  • Loading branch information...
1 parent 0f3d957 commit dd274590b360a56de66495f3aade0ee76d1d0e2b @mrrooijen mrrooijen committed Oct 17, 2010
Showing with 54 additions and 26 deletions.
  1. +12 −10 README.md
  2. +3 −3 backup.gemspec
  3. +8 −6 generators/backup/templates/backup.rb
  4. +31 −7 setup/backup.rb
View
22 README.md
@@ -2,7 +2,7 @@
## A Backup Ruby Gem
-__Backup__ is a Ruby Gem written for __Unix__ and __Ruby on Rails (2 and 3)__ environments. It can be used both with and without the Ruby on Rails framework! This gem offers a quick and simple solution to backing up databases such as MySQL/PostgreSQL/SQLite and Files/Folders. All backups can be transferred to Amazon S3, Rackspace Cloud Files, any remote server you have access to (using either SCP, SFTP or regular FTP), or a Local server. Backup handles Compression, Archiving, Encryption, Backup Cleaning (Cycling) and supports Email Notifications.
+__Backup__ is a Ruby Gem written for __Unix__ and __Ruby on Rails (2 and 3)__ environments. It can be used both with and without the Ruby on Rails framework! This gem offers a quick and simple solution to backing up databases such as MySQL/PostgreSQL/SQLite and Files/Folders. All backups can be transferred to Amazon S3, Rackspace Cloud Files, Dropbox Web Service, any remote server you have access to (using either SCP, SFTP or regular FTP), or a Local server. Backup handles Compression, Archiving, Encryption, Backup Cleaning (Cycling) and supports Email Notifications.
## Written for Environments
@@ -15,6 +15,17 @@ __Backup__ is a Ruby Gem written for __Unix__ and __Ruby on Rails (2 and 3)__ en
* [Meskyanichi - Michael van Rooijen](http://github.com/meskyanichi)
* [Fernandoluizao - Fernando Migliorini Luizão](http://github.com/fernandoluizao)
+### Contributors
+
+* [dtrueman](http://github.com/dtrueman)
+* [Nathan L Smith](http://github.com/smith)
+* [Francesc Esplugas](http://github.com/fesplugas)
+* [wakiki](http://github.com/wakiki)
+* [Dan Hixon](http://github.com/danhixon)
+* [Adam Greene](http://github.com/skippy)
+* [Dmitriy Novotochinov](http://github.com/trybeee)
+
+
## Backup's Current Capabilities
### Storage Methods
@@ -171,13 +182,4 @@ Send us a message! Fork the project!
[Report it](http://github.com/meskyanichi/backup/issues)
-### Contributors
-
-* [dtrueman](http://github.com/dtrueman)
-* [Nathan L Smith](http://github.com/smith)
-* [Francesc Esplugas](http://github.com/fesplugas)
-* [wakiki](http://github.com/wakiki)
-* [Dan Hixon](http://github.com/danhixon)
-* [Adam Greene](http://github.com/skippy)
-
__Michael van Rooijen | Final Creation. ([http://michaelvanrooijen.com](http://michaelvanrooijen.com))__
View
6 backup.gemspec
@@ -5,14 +5,14 @@ Gem::Specification.new do |gem|
##
# Gem Specifications
gem.name = 'backup'
- gem.version = '2.4.0'
+ gem.version = '2.4.1'
gem.date = Date.today.to_s
gem.summary = 'Backup is a Ruby Gem that simplifies making backups for databases, files and folders.'
gem.description = 'Backup is a Ruby Gem written for Unix and Ruby on Rails (2 and 3) environments. It can be used both with
and without the Ruby on Rails framework! This gem offers a quick and simple solution to backing up databases
such as MySQL/PostgreSQL/SQLite and Files/Folders. All backups can be transferred to Amazon S3, Rackspace Cloud Files,
- any remote server you have access to (using either SCP, SFTP or regular FTP), or a Local server. Backup handles
- Compression, Archiving, Encryption (OpenSSL or GPG), Backup Cleaning (Cycling) and supports Email Notifications.'
+ Dropbox Web Service, any remote server you have access to (using either SCP, SFTP or regular FTP), or a Local server.
+ Backup handles Compression, Archiving, Encryption (OpenSSL or GPG), Backup Cleaning (Cycling) and supports Email Notifications.'
##
# Author specifications
View
14 generators/backup/templates/backup.rb
@@ -21,12 +21,13 @@
# - Custom
#
# STORAGE METHODS
-# - S3 (Amazon)
-# - CF (Rackspace Cloud Files)
-# - SCP (Remote Server)
-# - FTP (Remote Server)
-# - SFTP (Remote Server)
-# - LOCAL (Local Server)
+# - S3 (Amazon)
+# - CF (Rackspace Cloud Files)
+# - Dropbox (Dropbox Web Service)
+# - SCP (Remote Server)
+# - FTP (Remote Server)
+# - SFTP (Remote Server)
+# - LOCAL (Local Server)
#
# GLOBAL OPTIONS
# - Keep Backups (keep_backups)
@@ -228,6 +229,7 @@
end
+
# Initialize with
# rake backup:run trigger='postgresql-backup-dropbox'
backup 'postgresql-backup-dropbox' do
View
38 setup/backup.rb
@@ -21,12 +21,13 @@
# - Custom
#
# STORAGE METHODS
-# - S3 (Amazon)
-# - CF (Rackspace Cloud Files)
-# - SCP (Remote Server)
-# - FTP (Remote Server)
-# - SFTP (Remote Server)
-# - LOCAL (Local Server)
+# - S3 (Amazon)
+# - CF (Rackspace Cloud Files)
+# - Dropbox (Dropbox Web Service)
+# - SCP (Remote Server)
+# - FTP (Remote Server)
+# - SFTP (Remote Server)
+# - LOCAL (Local Server)
#
# GLOBAL OPTIONS
# - Keep Backups (keep_backups)
@@ -228,4 +229,27 @@
encrypt_with_password false
notify false
-end
+end
+
+
+# Initialize with
+# sudo backup --run postgresql-backup-dropbox
+backup 'postgresql-backup-dropbox' do
+
+ adapter :postgresql do
+ user 'devmen'
+ database 'domowoi_test'
+ end
+
+ storage :dropbox do
+ api_key 'your_api_key'
+ secret_access_key 'your_api_secret'
+ username 'user@example.org'
+ password 'super_s3cret'
+ path 'backups'
+ end
+
+ keep_backups :all
+ encrypt_with_password false
+ notify false
+end

0 comments on commit dd27459

Please sign in to comment.