3dshow-mongo.yaml 741 B

123456789101112131415161718192021222324
  1. scheduler:
  2. # run every day at 6:00 and 18:00 UTC
  3. # 北京时间每天两点
  4. cron: "15 16 */1 * *"
  5. # number of backups to keep locally
  6. retention: 14
  7. # backup operation timeout in minutes
  8. timeout: 60
  9. target:
  10. # mongod IP or host name
  11. host: "3dshow-mongo"
  12. # mongodb port
  13. port: 27017
  14. # mongodb database name, leave blank to backup all databases
  15. database: "3dshow"
  16. # leave blank if auth is not enabled
  17. username: "root"
  18. password: "3dshow"
  19. # add custom params to mongodump (eg. Auth or SSL support), leave blank if not needed
  20. params: "--authenticationDatabase admin"
  21. # params: "--ssl --authenticationDatabase admin"
  22. # 对应数据库配置
  23. # mongodb://root:3dshow@3dshow-mongo:27017/3dshow?authSource=admin