zfs-mysql-backup 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/zfs-mysql-backup.rb +2 -2
- data/zfs-mysql-backup.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/lib/zfs-mysql-backup.rb
CHANGED
@@ -70,7 +70,7 @@ class ZfsMysqlBackup < Thor
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def push_to_s3
|
73
|
-
logger.info("[MySQL Backup] Pushing to S3 at #{
|
73
|
+
logger.info("[MySQL Backup] Pushing to S3 at #{s3_object_name} in #{@s3_bucket}.")
|
74
74
|
begin
|
75
75
|
AWS::S3::Base.establish_connection! :access_key_id => ENV['AWS_ACCESS_KEY_ID'],
|
76
76
|
:secret_access_key => ENV['AWS_SECRET_ACCESS_KEY']
|
@@ -85,7 +85,7 @@ class ZfsMysqlBackup < Thor
|
|
85
85
|
|
86
86
|
def s3_object_name
|
87
87
|
hostname = `hostname`
|
88
|
-
"mysqlbackups/#{hostname}
|
88
|
+
"mysqlbackups/#{hostname}.#{date}.gz"
|
89
89
|
end
|
90
90
|
|
91
91
|
def success?
|
data/zfs-mysql-backup.gemspec
CHANGED