@ps-aux/nodebup 0.3.0 → 0.6.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/lib/bup/AggregateBackupController.js +7 -7
- package/lib/bup/BackupController.js +63 -0
- package/lib/cli/InvalidInput.js +10 -0
- package/lib/cli/app.js +55 -15
- package/lib/config/Config.js +2 -10
- package/lib/config/expandAndCreatePath.js +3 -1
- package/lib/{storage/types.d.js → config/index.js} +0 -0
- package/lib/config/validateConfigAgainstSchema.js +3 -16
- package/lib/config/validateConfigAgainstSchema.spec.js +0 -4
- package/lib/ctx/Context.js +12 -2
- package/lib/ctx/ContextSymbols.js +4 -2
- package/lib/fs/Fs.js +11 -2
- package/lib/fs/fssync/FsSync.spec.js +1 -1
- package/lib/log/AppLogger.js +6 -4
- package/lib/storage/BackupClient.js +5 -0
- package/lib/storage/{restic/ResticStorageBackend.js → BackupClientStorageBackend.js} +8 -4
- package/lib/storage/StorageBackendProvider.js +25 -28
- package/lib/storage/StorageConfigProvider.js +89 -0
- package/lib/storage/StoreConfig.js +39 -0
- package/lib/storage/b2/B2CredentialsProvider.js +59 -0
- package/lib/storage/rclone/RCloneClientFactory.js +69 -0
- package/lib/storage/rclone/RcloneClient.js +87 -0
- package/lib/storage/rclone/RcloneClient.spec.js +83 -0
- package/lib/storage/restic/ResticClient.js +6 -15
- package/lib/storage/restic/ResticClient.spec.js +7 -23
- package/lib/storage/restic/ResticClientFactory.js +12 -36
- package/lib/storage/restic/ResticController.js +13 -8
- package/lib/storage/types.js +13 -0
- package/lib/tools/gpg/Gpg.js +8 -1
- package/lib/tools/gpg/Gpg.spec.js +18 -7
- package/lib/tools/shell/Shell.js +1 -1
- package/lib/tools/ssh/SshKeyManager.spec.js +3 -1
- package/package.json +17 -16
- package/lib/storage/local-file/LocalFileStorageBackend.js +0 -22
@@ -6,9 +6,11 @@ var _Fs = require("../../fs/Fs");
|
|
6
6
|
|
7
7
|
var _AppLogger = require("../../log/AppLogger");
|
8
8
|
|
9
|
+
var _Path = require("../../fs/path/Path");
|
10
|
+
|
9
11
|
// TODO setup ci to make tests work
|
10
12
|
it.skip('works', () => {
|
11
|
-
const sut = new _SshKeyManager.SshKeyManager(new _Fs.Fs(new _AppLogger.AppLogger()));
|
13
|
+
const sut = new _SshKeyManager.SshKeyManager(new _Fs.Fs(_Path.AbsPath.from(__dirname), new _AppLogger.AppLogger()));
|
12
14
|
const key = sut.exportKey('id_rsa');
|
13
15
|
console.log('key', key);
|
14
16
|
});
|
package/package.json
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ps-aux/nodebup",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.0",
|
4
4
|
"description": "",
|
5
5
|
"module": "lib/index.js",
|
6
6
|
"main": "lib/index.js",
|
7
7
|
"scripts": {
|
8
|
-
"build": "rm -rf build && babel --extensions '.ts,.js' src -d lib src",
|
8
|
+
"build": "rm -rf build && babel --extensions '.ts,.js,.md' src -d lib src",
|
9
9
|
"pub": "npm publish --access public",
|
10
10
|
"test": "jest",
|
11
11
|
"tc": "tsc --noEmit",
|
@@ -27,27 +27,27 @@
|
|
27
27
|
},
|
28
28
|
"typings": "src/types.d.ts",
|
29
29
|
"devDependencies": {
|
30
|
-
"@babel/cli": "^7.16.
|
31
|
-
"@babel/core": "^7.16.
|
30
|
+
"@babel/cli": "^7.16.7",
|
31
|
+
"@babel/core": "^7.16.7",
|
32
32
|
"@babel/eslint-parser": "^7.16.5",
|
33
|
-
"@babel/node": "^7.16.
|
34
|
-
"@babel/plugin-proposal-class-properties": "^7.16.
|
35
|
-
"@babel/plugin-proposal-decorators": "^7.16.
|
36
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.16.
|
37
|
-
"@babel/plugin-proposal-optional-chaining": "^7.16.
|
38
|
-
"@babel/preset-env": "^7.16.
|
39
|
-
"@babel/preset-typescript": "^7.16.
|
40
|
-
"@ps-aux/cibs": "^0.6.
|
41
|
-
"@types/jest": "^27.0
|
33
|
+
"@babel/node": "^7.16.7",
|
34
|
+
"@babel/plugin-proposal-class-properties": "^7.16.7",
|
35
|
+
"@babel/plugin-proposal-decorators": "^7.16.7",
|
36
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.16.7",
|
37
|
+
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
38
|
+
"@babel/preset-env": "^7.16.7",
|
39
|
+
"@babel/preset-typescript": "^7.16.7",
|
40
|
+
"@ps-aux/cibs": "^0.6.4",
|
41
|
+
"@types/jest": "^27.4.0",
|
42
42
|
"@types/jest-when": "^2.7.4",
|
43
|
-
"@types/node": "^17.0.
|
43
|
+
"@types/node": "^17.0.6",
|
44
44
|
"@types/ramda": "^0.27.62",
|
45
45
|
"@typescript-eslint/eslint-plugin": "^5.8.1",
|
46
46
|
"@typescript-eslint/parser": "^5.8.1",
|
47
47
|
"babel-plugin-module-resolver": "^4.1.0",
|
48
48
|
"babel-plugin-transform-typescript-metadata": "^0.3.2",
|
49
49
|
"dir-compare": "^4.0.0",
|
50
|
-
"eslint": "^8.
|
50
|
+
"eslint": "^8.6.0",
|
51
51
|
"eslint-config-standard": "^16.0.3",
|
52
52
|
"eslint-plugin-import": "^2.25.3",
|
53
53
|
"eslint-plugin-node": "^11.1.0",
|
@@ -72,10 +72,11 @@
|
|
72
72
|
},
|
73
73
|
"dependencies": {
|
74
74
|
"@hapi/joi": "^17.1.1",
|
75
|
-
"@ps-aux/nclif": "^0.0.
|
75
|
+
"@ps-aux/nclif": "^0.0.7-alpha.1",
|
76
76
|
"@types/hapi__joi": "^17.1.8",
|
77
77
|
"axios": "^0.24.0",
|
78
78
|
"handlebars": "^4.7.7",
|
79
|
+
"ini": "^2.0.0",
|
79
80
|
"inversify": "^6.0.1",
|
80
81
|
"js-yaml": "^4.1.0",
|
81
82
|
"pino": "^7.6.2",
|
@@ -1,22 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
4
|
-
value: true
|
5
|
-
});
|
6
|
-
exports.LocalFileStorageBackend = void 0;
|
7
|
-
|
8
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
9
|
-
|
10
|
-
class LocalFileStorageBackend {
|
11
|
-
constructor(fsSyncer, dst) {
|
12
|
-
this.fsSyncer = fsSyncer;
|
13
|
-
this.dst = dst;
|
14
|
-
|
15
|
-
_defineProperty(this, "store", from => {
|
16
|
-
this.fsSyncer.syncDirs(from, this.dst);
|
17
|
-
});
|
18
|
-
}
|
19
|
-
|
20
|
-
}
|
21
|
-
|
22
|
-
exports.LocalFileStorageBackend = LocalFileStorageBackend;
|