backuper 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -7
- data/VERSION +1 -1
- data/backuper.gemspec +1 -1
- data/lib/backuper.rb +1 -1
- metadata +4 -4
data/README.rdoc
CHANGED
@@ -18,7 +18,7 @@ Configure and run the backup :
|
|
18
18
|
set :mysql_params, YAML::load(File.read('config/database.yml'))['production']
|
19
19
|
end
|
20
20
|
|
21
|
-
Put this in a script (e.g., *
|
21
|
+
Put this in a script (e.g., *script/backup.rb*) and make it executable (*chmod +x*).
|
22
22
|
|
23
23
|
Don't forget to set up the public keys, it won't work with password authentication.
|
24
24
|
|
@@ -26,13 +26,11 @@ Don't forget to set up the public keys, it won't work with password authenticati
|
|
26
26
|
|
27
27
|
Add a line to your crontab with *crontab -e* to run the script.
|
28
28
|
|
29
|
-
Or use whenever :
|
29
|
+
Or use whenever with in your *config/schedule.rb* :
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
command "script"
|
35
|
-
end
|
31
|
+
every 1.day, :at => '4am' do
|
32
|
+
command "cd #{File.dirname(File.expand_path(__FILE__))} && ruby script/backup.rb"
|
33
|
+
end
|
36
34
|
|
37
35
|
= Credits
|
38
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.4
|
data/backuper.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Aur\303\251lien Malisart"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-05-31}
|
13
13
|
s.description = %q{simple server backup tool}
|
14
14
|
s.email = %q{aurelien.malisart@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/backuper.rb
CHANGED
@@ -51,7 +51,7 @@ class Backuper
|
|
51
51
|
return
|
52
52
|
end
|
53
53
|
|
54
|
-
timestamp = "#{Time.now.strftime('%Y
|
54
|
+
timestamp = "#{Time.now.strftime('%Y-%m-%d-%s')}"
|
55
55
|
local_current_backup_path = "#{local_backup_base_path}/mysql/#{timestamp}.sql"
|
56
56
|
local_latest_backup_path = Dir["#{local_backup_base_path}/mysql/*.sql"].last
|
57
57
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: backuper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 7
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 4
|
10
|
+
version: 2.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Aur\xC3\xA9lien Malisart"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2011-05-31 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|