mirror of
https://github.com/samuelncui/yatm.git
synced 2026-09-17 05:24:15 +00:00
feat: notice job create
This commit is contained in:
@@ -17,5 +17,6 @@ output/
|
||||
frontend/node_modules/
|
||||
client/node_modules/
|
||||
|
||||
tests/
|
||||
tapes.db
|
||||
upload_test.sh
|
||||
|
||||
@@ -124,6 +124,7 @@ const useBackupTargetBrowser = () => {
|
||||
|
||||
const req = makeArchiveParam(1n, { sources });
|
||||
console.log(req, await cli.jobCreate(req).response);
|
||||
alert("Create Backup Job Success!");
|
||||
})();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -108,6 +108,7 @@ const useRestoreTargetBrowser = () => {
|
||||
(async () => {
|
||||
const fileIds = files.filter((file): file is FileData => !!file && file.id !== "0").map((file) => BigInt(file.id));
|
||||
console.log(await cli.jobCreate(makeParam(1n, { fileIds })).response);
|
||||
alert("Create Restore Job Success!");
|
||||
})();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# stenc -g 256 -k /root/tape.key -kd TapeMasterKey
|
||||
stenc -f /dev/st0 -e on -k /root/tape.key -a 1 --ckod
|
||||
Reference in New Issue
Block a user