ztil 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ztil/command.rb +6 -6
- data/lib/ztil.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: 56be01ea68b404c0a74d17f72deb6b04a17cb13f
|
4
|
+
data.tar.gz: 5bdfe0e63a24bfdc7f2df4e1b8bb5c4bba631926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5096e0cf9ff5bbff630fb6072685cc8f7d298c19d8b21067428c79fbdb1920f841917b2a2491ab5c1f971512e0160364c833e0b19b39c7e1e96330f0050fe77e
|
7
|
+
data.tar.gz: f9d8081959895abc08ab229137100156dc18676840e280715e26595159106d6b6abc0fabbf7fb1eec0bc4fff0b39c549730d1396a9b9052bfd60b292b2b1b924
|
data/lib/ztil/command.rb
CHANGED
@@ -26,12 +26,12 @@ module Ztil
|
|
26
26
|
#
|
27
27
|
# @example
|
28
28
|
# ztil backup --databases="mysql,mongodb" --storages="qi_niu" --email="xxx@xxx.com" --schedule="1.day&4:30 am" --run_prefix="bundle exec"
|
29
|
-
desc 'backup DATABASE_NAME', '备份数据库,
|
30
|
-
method_option :databases, desc: '需要备份的数据库类型, 支持mysql
|
31
|
-
method_option :storages, desc: '备份数据的存储方式, 支持存储到七牛'
|
32
|
-
method_option :email, desc: '备份成功后通知的邮箱'
|
33
|
-
method_option :schedule, desc: '按计划执行, 默认只执行一次'
|
34
|
-
method_option :run_prefix, desc: '
|
29
|
+
desc 'backup DATABASE_NAME', '备份数据库, DATABASE_NAME最好为数据库名称(可修改)'
|
30
|
+
method_option :databases, desc: '需要备份的数据库类型, 支持(mongodb, mysql, openldap, postgresql, redis, riak)', required: true, aliases: 'd'
|
31
|
+
method_option :storages, desc: '备份数据的存储方式, 支持存储到七牛(local, qi_niu)', aliases: 's'
|
32
|
+
method_option :email, desc: '备份成功后通知的邮箱', aliases: 'e'
|
33
|
+
method_option :schedule, desc: '按计划执行, 默认只执行一次', aliases: 'S'
|
34
|
+
method_option :run_prefix, desc: '运行任务命令的前缀, 例如`bundle exec`', aliases: 'r'
|
35
35
|
def backup(name)
|
36
36
|
storages = options[:storages] || 'local'
|
37
37
|
|
data/lib/ztil.rb
CHANGED