animeic 2 anni fa
parent
commit
874b9ca445
1 ha cambiato i file con 23 aggiunte e 0 eliminazioni
  1. 23 0
      config/3dshow2-mongo[all].yaml

+ 23 - 0
config/3dshow2-mongo[all].yaml

@@ -0,0 +1,23 @@
+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: ""
+  # 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:3dshow@3dshow-mongo:27017/3dshow?authSource=admin