backup2s3 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/backup2s3.gemspec +2 -2
- data/lib/backup2s3.rb +2 -2
- data/lib/backup_management/backup_manager.rb +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('backup2s3', '0.2.
|
5
|
+
Echoe.new('backup2s3', '0.2.7') do |p|
|
6
6
|
p.description = "Backup2s3 is a gem that performs rails database and application backups and stores them on Amazon S3."
|
7
7
|
p.summary = "Backup2s3 is a gem that creates, deletes and restores rails database and application backups."
|
8
8
|
p.url = "http://github.com/aricwalker/backup2s3"
|
data/backup2s3.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{backup2s3}
|
5
|
-
s.version = "0.2.
|
5
|
+
s.version = "0.2.7"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = [%q{Aric Walker}]
|
9
|
-
s.date = %q{2011-08-
|
9
|
+
s.date = %q{2011-08-16}
|
10
10
|
s.description = %q{Backup2s3 is a gem that performs rails database and application backups and stores them on Amazon S3.}
|
11
11
|
s.email = %q{aric@truespire.com}
|
12
12
|
s.extra_rdoc_files = [%q{CHANGELOG}, %q{README}, %q{lib/adapters/s3_adapter.rb}, %q{lib/adapters/s3cmd_adapter.rb}, %q{lib/backup2s3.rb}, %q{lib/backup_management/backup.rb}, %q{lib/backup_management/backup_manager.rb}, %q{lib/system.rb}]
|
data/lib/backup2s3.rb
CHANGED
@@ -57,7 +57,7 @@ class Backup2s3
|
|
57
57
|
# information.
|
58
58
|
def create_backup(comment)
|
59
59
|
if @conf[:backups][:backup_database]
|
60
|
-
@database_file = System.clean("#{@time}-#{System.db_credentials['database']}-database.sql"
|
60
|
+
@database_file = System.clean("#{@time}-#{System.db_credentials['database']}-database") << ".sql"
|
61
61
|
print "\nDumping database..."
|
62
62
|
database_temp = System.db_dump
|
63
63
|
puts "done\n- Database dump file size: " << database_temp.size.to_s << " B"; print "Backing up database dump file..."
|
@@ -66,7 +66,7 @@ class Backup2s3
|
|
66
66
|
end
|
67
67
|
|
68
68
|
if @conf[:backups][:backup_application_folders].is_a?(Array)
|
69
|
-
@application_file = System.clean("#{@time}-#{System.db_credentials['database']}-application.tar.gz"
|
69
|
+
@application_file = System.clean("#{@time}-#{System.db_credentials['database']}-application") << ".tar.gz"
|
70
70
|
print "\nZipping application folders..."
|
71
71
|
application_temp = System.tarzip_folders(@conf[:backups][:backup_application_folders])
|
72
72
|
puts "done\n- Application tarball size: " << application_temp.size.to_s << " B"; print "Backing up application tarball..."
|
@@ -11,7 +11,7 @@ class BackupManager
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.filename
|
14
|
-
System.clean("#{System.db_credentials['database']}_ON_#{System.hostname}_backups.yaml"
|
14
|
+
System.clean("#{System.db_credentials['database']}_ON_#{System.hostname}_backups") << ".yaml"
|
15
15
|
end
|
16
16
|
|
17
17
|
def self.local_filename
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backup2s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 7
|
10
|
+
version: 0.2.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aric Walker
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-16 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: aws-s3
|