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 +4 -4
- data/.gitignore +1 -0
- data/README.md +3 -1
- data/bin/backupper +1 -1
- data/lib/backupper/backupper.rb +1 -1
- data/lib/backupper/mailer.rb +1 -1
- data/lib/backupper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c75d458bf09673a1a294208a5b529fc73a803356
|
4
|
+
data.tar.gz: 9d14ec6d7a95b7b6fd84a1e01834fda95e81cc20
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a1b057be174801c951053d6919eece9d681c7c02a381c70ab613652c86aacef4c3ab8b1eda3ca16ceea7a6fb00270758c343e62e9dfac895aa3c10c8c2fbc1a
|
7
|
+
data.tar.gz: 4ab38c3ac345d0317aecfb87bca4b516c25c43bc347060a338527b9bd86b9105d07280419c3a180e3f7086f3563927224e9e1b9649a4a4f036fa272db6fe181e
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -47,7 +47,9 @@ db2:
|
|
47
47
|
db_password: db_Pa$$w0rD
|
48
48
|
```
|
49
49
|
|
50
|
-
After
|
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
|
|
data/bin/backupper
CHANGED
data/lib/backupper/backupper.rb
CHANGED
@@ -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 "
|
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'
|
data/lib/backupper/mailer.rb
CHANGED
@@ -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
|
data/lib/backupper/version.rb
CHANGED