perf: sqlite数据库备份插件

This commit is contained in:
xiaojunnuo
2024-10-15 19:27:55 +08:00
parent 5dde5bd3f7
commit 77f163144f
7 changed files with 206 additions and 12 deletions
@@ -178,6 +178,8 @@ export class AsyncSsh2Client {
end() {
if (this.conn) {
this.conn.end();
this.conn.destroy();
this.conn = null;
}
}
@@ -242,9 +244,8 @@ export class SshClient {
mkdirCmd = `if not exist "${filePath}" mkdir "${filePath}"`;
}
}
await conn.shell(mkdirCmd);
await conn.exec(mkdirCmd);
}
await conn.fastPut({ sftp, ...transport });
}
this.logger.info('文件全部上传成功');