animeic 2 years ago
parent
commit
0e7be95efe
2 changed files with 25 additions and 1 deletions
  1. 24 0
      config/3dshow2-mongo-3dshow.yaml
  2. 1 1
      config/3dshow2-mongo-user.yaml

+ 24 - 0
config/3dshow2-mongo-3dshow.yaml

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

+ 1 - 1
config/3dshow2-mongo[all].yaml → config/3dshow2-mongo-user.yaml

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