animeic 2 лет назад
Родитель
Сommit
6fa8089ec0

+ 4 - 3
mgob/config/local-3dshow-test.yaml → mgob/config/3dshow-mongo.yaml

@@ -1,6 +1,7 @@
 scheduler:
   # run every day at 6:00 and 18:00 UTC
-  cron: "51 7,18 */1 * *"
+  # 北京时间每天两点
+  cron: "15 16 */1 * *"
   # number of backups to keep locally
   retention: 14
   # backup operation timeout in minutes
@@ -19,5 +20,5 @@ target:
   params: "--authenticationDatabase admin"
   # params: "--ssl --authenticationDatabase admin"
 
-  # mongodb://root:3dshow@124.71.139.24:37031/3dshow?authSource=admin
-  # mongodb://root:root@127.0.0.1:17017/wj-project?authSource=admin
+  # 对应数据库配置
+  # mongodb://root:3dshow@3dshow-mongo:27017/3dshow?authSource=admin

+ 8 - 6
mgob/config/local-3dshow1-test.yaml → mgob/config/box-mongo[all].yaml

@@ -1,23 +1,25 @@
 scheduler:
   # run every day at 6:00 and 18:00 UTC
-  cron: "50 7,18 */1 * *"
+  # 北京时间每天两点
+  cron: "0 16 */1 * *"
   # number of backups to keep locally
   retention: 14
   # backup operation timeout in minutes
   timeout: 60
 target:
   # mongod IP or host name
-  host: "3dshow1-mongo"
+  host: "box-mongo"
   # mongodb port
   port: 27017
   # mongodb database name, leave blank to backup all databases
-  database: "3dshow1"
+  database: ""
   # leave blank if auth is not enabled
   username: "root"
-  password: "3dshow1"
+  password: "boxcost"
   # 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@124.71.139.24:37031/3dshow?authSource=admin
-  # mongodb://root:3dshow1@127.0.0.1:37032/3dshow1?authSource=admin
+  # 对应数据库配置
+  # mongodb://root:boxcost@box-mongo:27017/box-cost?authSource=admin
+  # mongodb://root:boxcost@box-mongo:27017/box-user?authSource=admin

+ 23 - 0
mgob/config/template

@@ -0,0 +1,23 @@
+# scheduler:
+#   # run every day at 6:00 and 18:00 UTC
+#   cron: "51 7,18 */1 * *"
+#   # number of backups to keep locally
+#   retention: 14
+#   # backup operation timeout in minutes
+#   timeout: 60
+# target:
+#   # mongod IP or host name
+#   host: "3dshow-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: "3dshow"
+#   # 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@124.71.139.24:37031/3dshow?authSource=admin
+#   # mongodb://root:root@127.0.0.1:17017/wj-project?authSource=admin

BIN
mgob/storage/local-3dshow/local-3dshow-1668756600.gz


+ 0 - 10
mgob/storage/local-3dshow/local-3dshow-1668756600.log

@@ -1,10 +0,0 @@
-2022-11-18T07:30:00.026+0000	writing 3dshow.supply to archive '/tmp/local-3dshow-1668756600.gz'
-2022-11-18T07:30:00.026+0000	writing 3dshow.address to archive '/tmp/local-3dshow-1668756600.gz'
-2022-11-18T07:30:00.026+0000	writing 3dshow.product to archive '/tmp/local-3dshow-1668756600.gz'
-2022-11-18T07:30:00.027+0000	writing 3dshow.order to archive '/tmp/local-3dshow-1668756600.gz'
-2022-11-18T07:30:00.030+0000	done dumping 3dshow.order (2 documents)
-2022-11-18T07:30:00.030+0000	writing 3dshow.collect to archive '/tmp/local-3dshow-1668756600.gz'
-2022-11-18T07:30:00.031+0000	done dumping 3dshow.address (2 documents)
-2022-11-18T07:30:00.049+0000	done dumping 3dshow.collect (1 document)
-2022-11-18T07:30:00.051+0000	done dumping 3dshow.supply (3 documents)
-2022-11-18T07:30:00.054+0000	done dumping 3dshow.product (1 document)

BIN
mgob/storage/local-3dshow/local-3dshow-1668757860.gz


+ 0 - 10
mgob/storage/local-3dshow/local-3dshow-1668757860.log

@@ -1,10 +0,0 @@
-2022-11-18T07:51:00.030+0000	writing 3dshow.supply to archive '/tmp/local-3dshow-1668757860.gz'
-2022-11-18T07:51:00.030+0000	writing 3dshow.order to archive '/tmp/local-3dshow-1668757860.gz'
-2022-11-18T07:51:00.031+0000	writing 3dshow.address to archive '/tmp/local-3dshow-1668757860.gz'
-2022-11-18T07:51:00.033+0000	writing 3dshow.product to archive '/tmp/local-3dshow-1668757860.gz'
-2022-11-18T07:51:00.034+0000	done dumping 3dshow.supply (3 documents)
-2022-11-18T07:51:00.034+0000	writing 3dshow.collect to archive '/tmp/local-3dshow-1668757860.gz'
-2022-11-18T07:51:00.044+0000	done dumping 3dshow.collect (1 document)
-2022-11-18T07:51:00.044+0000	done dumping 3dshow.address (2 documents)
-2022-11-18T07:51:00.054+0000	done dumping 3dshow.product (1 document)
-2022-11-18T07:51:00.059+0000	done dumping 3dshow.order (2 documents)

BIN
mgob/storage/local-3dshow1/local-3dshow1-1668757800.gz


+ 0 - 10
mgob/storage/local-3dshow1/local-3dshow1-1668757800.log

@@ -1,10 +0,0 @@
-2022-11-18T07:50:00.031+0000	writing 3dshow1.supply to archive '/tmp/local-3dshow1-1668757800.gz'
-2022-11-18T07:50:00.031+0000	writing 3dshow1.collect to archive '/tmp/local-3dshow1-1668757800.gz'
-2022-11-18T07:50:00.031+0000	writing 3dshow1.address to archive '/tmp/local-3dshow1-1668757800.gz'
-2022-11-18T07:50:00.032+0000	writing 3dshow1.order to archive '/tmp/local-3dshow1-1668757800.gz'
-2022-11-18T07:50:00.036+0000	done dumping 3dshow1.collect (1 document)
-2022-11-18T07:50:00.036+0000	writing 3dshow1.product to archive '/tmp/local-3dshow1-1668757800.gz'
-2022-11-18T07:50:00.037+0000	done dumping 3dshow1.order (2 documents)
-2022-11-18T07:50:00.037+0000	done dumping 3dshow1.supply (3 documents)
-2022-11-18T07:50:00.037+0000	done dumping 3dshow1.address (2 documents)
-2022-11-18T07:50:00.054+0000	done dumping 3dshow1.product (1 document)