dbkeeper 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +240 -0
- package/dist/cli.d.ts +10 -0
- package/dist/cli.js +166 -0
- package/dist/config/loadConfig.d.ts +6 -0
- package/dist/config/loadConfig.js +74 -0
- package/dist/core/logger.d.ts +14 -0
- package/dist/core/logger.js +28 -0
- package/dist/core/retention.d.ts +24 -0
- package/dist/core/retention.js +33 -0
- package/dist/core/runBackup.d.ts +20 -0
- package/dist/core/runBackup.js +137 -0
- package/dist/database/mongo.d.ts +10 -0
- package/dist/database/mongo.js +102 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +24 -0
- package/dist/notify/mail.d.ts +11 -0
- package/dist/notify/mail.js +89 -0
- package/dist/storage/gdrive.d.ts +11 -0
- package/dist/storage/gdrive.js +132 -0
- package/dist/types.d.ts +78 -0
- package/dist/types.js +2 -0
- package/package.json +63 -0
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "dbkeeper",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Automated MongoDB backup to Google Drive with rolling retention and email notifications.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"backup",
|
|
7
|
+
"mongodb",
|
|
8
|
+
"google-drive",
|
|
9
|
+
"mongodump",
|
|
10
|
+
"retention",
|
|
11
|
+
"cli"
|
|
12
|
+
],
|
|
13
|
+
"homepage": "https://github.com/faysalsarker-dev/dbkeeper#readme",
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/faysalsarker-dev/dbkeeper/issues"
|
|
16
|
+
},
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/faysalsarker-dev/dbkeeper.git"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": "Faysal Sarker",
|
|
23
|
+
"type": "commonjs",
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"bin": {
|
|
27
|
+
"dbkeeper": "dist/cli.js"
|
|
28
|
+
},
|
|
29
|
+
"directories": {
|
|
30
|
+
"example": "examples",
|
|
31
|
+
"test": "test"
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"dev": "ts-node src/cli.ts",
|
|
40
|
+
"build:test": "tsc --project tsconfig.test.json",
|
|
41
|
+
"test": "npm run build:test && mocha 'dist/test/**/*.test.js' --timeout 60000",
|
|
42
|
+
"test:unit": "npm run build:test && mocha dist/test/retention.test.js",
|
|
43
|
+
"prepublishOnly": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"archiver": "^8.0.0",
|
|
47
|
+
"dbkeeper": "file:dbkeeper-1.0.0.tgz",
|
|
48
|
+
"dotenv": "^17.4.2",
|
|
49
|
+
"googleapis": "^178.1.1",
|
|
50
|
+
"node-cron": "^4.6.0",
|
|
51
|
+
"nodemailer": "^10.0.1"
|
|
52
|
+
},
|
|
53
|
+
"devDependencies": {
|
|
54
|
+
"@types/archiver": "^8.0.0",
|
|
55
|
+
"@types/mocha": "^10.0.10",
|
|
56
|
+
"@types/node": "^26.5.0",
|
|
57
|
+
"@types/nodemailer": "^6.4.17",
|
|
58
|
+
"mocha": "^11.8.0",
|
|
59
|
+
"ts-mocha": "^10.1.0",
|
|
60
|
+
"ts-node": "^10.9.2",
|
|
61
|
+
"typescript": "^7.0.2"
|
|
62
|
+
}
|
|
63
|
+
}
|