瀏覽代碼

add wwlacke

animeic 1 年之前
父節點
當前提交
6baa4514ea
共有 2 個文件被更改,包括 25 次插入1 次删除
  1. 24 0
      config/baishuihu -mongo[all].yaml
  2. 1 1
      config/spu3d-mongo[all].yaml

+ 24 - 0
config/baishuihu -mongo[all].yaml

@@ -0,0 +1,24 @@
+scheduler:
+  # run every day at 6:00 and 18:00 UTC
+  cron: "30 18 */1 * *"
+  # number of backups to keep locally
+  retention: 14
+  # backup operation timeout in minutes
+  timeout: 60
+target:
+  # mongod IP or host name
+  host: "adxihua-mongo"
+  # mongodb port
+  port: 27017
+  # mongodb database name, leave blank to backup all databases
+  database: ""
+  # leave blank if auth is not enabled
+  username: "root"
+  password: "adxihua_xxx"
+  # add custom params to mongodump (eg. Auth or SSL support), leave blank if not needed
+  params: "--authenticationDatabase admin"
+  # params: "--ssl --authenticationDatabase admin"
+
+  # 对应数据库配置
+  # mongodb://root:boxcost@box-mongo:27017/box-cost?authSource=admin
+  # mongodb://root:boxcost@box-mongo:27017/box-user?authSource=admin

+ 1 - 1
config/spu3d-mongo[all].yaml

@@ -1,6 +1,6 @@
 scheduler:
   # run every day at 6:00 and 18:00 UTC
-  cron: "0 18 */1 * *"
+  cron: "15 18 */1 * *"
   # number of backups to keep locally
   retention: 14
   # backup operation timeout in minutes