08 2022 档案

摘要:备份: mongodump -h host -d 数据库 -c 表 -o 文件位置 -u 用户 还原: mongorestore -d 数据库 --dir 文件位置 -u 用户 如报错:Failed: error connecting to db server: server returned er 阅读全文
posted @ 2022-08-24 09:58 sunmlight 阅读(34) 评论(0) 推荐(0)
摘要:提取/封装boto3 S3方法便于使用 使用AWS S3 时,参数AWS_ENDPOINT置空即可, 使用腾讯云cos,阿里云oss或者私有对象存储minio时, 指定AWS_ENDPOINT为服务url class S3(object): """ tenant_id: 租户id作为第一层文件夹 b 阅读全文
posted @ 2022-08-01 17:27 sunmlight 阅读(1285) 评论(0) 推荐(0)