@datatruck/cli 0.41.6 → 0.41.7
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/utils/restic.d.ts +2 -0
- package/lib/utils/restic.js +2 -0
- package/package.json +1 -1
package/lib/utils/restic.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare class Restic {
|
|
|
89
89
|
ids?: string[];
|
|
90
90
|
tags?: string[];
|
|
91
91
|
paths?: string[];
|
|
92
|
+
host?: string;
|
|
92
93
|
latest?: number;
|
|
93
94
|
json?: boolean;
|
|
94
95
|
group?: ("path" | "tags" | "host")[];
|
|
@@ -108,6 +109,7 @@ export declare class Restic {
|
|
|
108
109
|
cwd?: string;
|
|
109
110
|
tags?: string[];
|
|
110
111
|
paths: string[];
|
|
112
|
+
host?: string;
|
|
111
113
|
setPaths?: string[];
|
|
112
114
|
exclude?: string[];
|
|
113
115
|
excludeFile?: string[];
|
package/lib/utils/restic.js
CHANGED
|
@@ -172,6 +172,7 @@ class Restic {
|
|
|
172
172
|
return await this.json([
|
|
173
173
|
"snapshots",
|
|
174
174
|
...(json ? ["--json"] : []),
|
|
175
|
+
...(options.host ? ["--host", options.host] : []),
|
|
175
176
|
...(options.tags?.flatMap((tag) => [`--tag`, tag]) ?? []),
|
|
176
177
|
...(options.paths?.flatMap((path) => ["--path", path]) ?? []),
|
|
177
178
|
...(options.group ? ["--group-by", options.group.join(",")] : []),
|
|
@@ -185,6 +186,7 @@ class Restic {
|
|
|
185
186
|
const backup = this.createProcess([
|
|
186
187
|
"backup",
|
|
187
188
|
"--json",
|
|
189
|
+
...(options.host ? ["--host", options.host] : []),
|
|
188
190
|
...(options.exclude?.flatMap((v) => ["-e", v]) ?? []),
|
|
189
191
|
...(options.excludeFile?.flatMap((v) => ["--exclude-file", v]) ?? []),
|
|
190
192
|
...(options.tags?.flatMap((v) => ["--tag", v]) ?? []),
|