backuper 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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., *app/backup.rb*).
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
- require 'backuper'
32
-
33
- every 12.hours do
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.3
1
+ 2.0.4
@@ -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{2009-10-28}
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 = [
@@ -51,7 +51,7 @@ class Backuper
51
51
  return
52
52
  end
53
53
 
54
- timestamp = "#{Time.now.strftime('%Y-%-m-%d-%s')}"
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: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 3
10
- version: 2.0.3
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: 2009-10-28 00:00:00 +01:00
18
+ date: 2011-05-31 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21