3dshow2-mongo-3dshow.yaml 798 B

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