backupper 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 723c61f682f76c26391c958a439f44cb449c1cd6
4
- data.tar.gz: 83e680f50cc6f12c401d3def411e6348708a0fa3
3
+ metadata.gz: c75d458bf09673a1a294208a5b529fc73a803356
4
+ data.tar.gz: 9d14ec6d7a95b7b6fd84a1e01834fda95e81cc20
5
5
  SHA512:
6
- metadata.gz: 68da65e4bb05372820267af1415ba43d9d8a37d9fd19f99f13ace62b4da820549f3496ca95ad2402e05e1a0a83f97e77b7702798fc14d9ab057fa5781ba6d38b
7
- data.tar.gz: 823297e467198e1feb532d205186e097a58d7eb97a18cefb13b39d3d07709b8cc388cd3cc79769841cb4bd2343ed5d1cba6d668ec19b4abec70b7bbb4482a799
6
+ metadata.gz: 3a1b057be174801c951053d6919eece9d681c7c02a381c70ab613652c86aacef4c3ab8b1eda3ca16ceea7a6fb00270758c343e62e9dfac895aa3c10c8c2fbc1a
7
+ data.tar.gz: 4ab38c3ac345d0317aecfb87bca4b516c25c43bc347060a338527b9bd86b9105d07280419c3a180e3f7086f3563927224e9e1b9649a4a4f036fa272db6fe181e
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  conf.yml
10
+ conf2.yml
data/README.md CHANGED
@@ -47,7 +47,9 @@ db2:
47
47
  db_password: db_Pa$$w0rD
48
48
  ```
49
49
 
50
- After backups a report email is sent to you using gmail smtp service.
50
+ After the backup a report email is sent to you using gmail smtp service (remember to permit less secure app [here](https://myaccount.google.com/lesssecureapps)).
51
+
52
+ ⚠️ __WARNING__: the backupper configuration file contains many important passwords, so be careful to lock it and protect it with care!
51
53
 
52
54
  ## Contributing
53
55
 
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- $LOAD_PATH << './lib'
3
+ #$LOAD_PATH << './lib'
4
4
 
5
5
  require 'backupper'
6
6
 
@@ -24,7 +24,7 @@ class Backupper
24
24
  def backup!
25
25
  @conf.each do |k, options|
26
26
  o = @default.merge(options)
27
- puts "🗄 run backup of #{k}..."
27
+ puts "⬇️ backing up #{k}..."
28
28
  outdir = check_dir(o['dump'].to_s)
29
29
  unless outdir
30
30
  err = 'Invalid directory where to save database dump'
@@ -38,9 +38,9 @@ class Mailer
38
38
  s << "️✅ #{k}\n"
39
39
  s << '=' * 80 << "\n"
40
40
  s << "Backup SUCCESS!\n"
41
- s << " dump path: #{data[:path]}\n"
42
41
  s << " dump size: #{data[:size]} MB\n"
43
42
  s << " time: #{data[:time]} seconds\n"
43
+ s << " dump saved in: #{data[:path]}\n"
44
44
  if data[:extra_copy]
45
45
  s << " extra copy in: #{data[:extra_copy]}\n"
46
46
  else
@@ -1,3 +1,3 @@
1
1
  class Backupper
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: backupper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pioz