Commit Graph

11 Commits

Author SHA1 Message Date
Awuqing
29dba71b53 feat(saphana): refactor backup from SQL export to BACKUP DATA USING FILE
Replace the hdbsql SELECT-based schema DDL export with SAP HANA's official
BACKUP DATA USING FILE for proper data-level backup.

Changes:
- Run: issue BACKUP DATA [FOR <tenant>] USING FILE via hdbsql, package
  resulting backup files into tar archive as artifact
- Restore: extract tar, locate backup prefix, issue RECOVER DATA
  [FOR <tenant>] USING FILE ... CLEAR LOG
- Add helper functions: buildHdbsqlArgs, packageBackupFiles,
  extractTarArchive, findBackupPrefix
- Add 7 unit tests covering backup/restore/error paths
2026-03-24 18:24:12 +08:00
Awuqing
6118d5e779 docs: 更新 README 文档,添加 SAP HANA 和 FTP 支持说明
- 简介描述新增 FTP/FTPS 存储选项
- 备份类型列表新增 SAP HANA(通过 hdbsql 工具)
- 存储后端表格新增 FTP / FTPS 行
- 架构图 Storage Registry 新增 FTP / FTPS
- 项目结构树新增 backup/saphana 和 storage/ftp
- 技术栈表格新增 jlaffaye/ftp 依赖
- 同步更新中英文双语 README
2026-03-21 16:22:26 +08:00
Awuqing
0330dd4700 feat: 新增 SAP HANA 数据库备份支持和 FTP 存储后端
后端变更:
- 新增 SAP HANA 备份 Runner (saphana_runner.go),使用 hdbsql CLI 工具执行数据库导出/恢复
- 新增 FTP 存储 Provider (storage/ftp/provider.go),支持 FTP/FTPS 协议上传下载备份文件
- 在 storage/types.go 中添加 FTP 类型常量和 FTPConfig 配置结构
- 在 app.go 中注册 FTP Storage Factory 和 SAP HANA Backup Runner
- 添加 github.com/jlaffaye/ftp 依赖

前端变更:
- BackupTaskType 联合类型新增 'saphana',默认端口 30015
- StorageTargetType 联合类型新增 'ftp'
- 备份任务表单支持 SAP HANA 类型选择及数据库连接配置
- 存储目标表单新增 FTP 配置字段(主机/端口/用户名/密码/基础目录/TLS)

参考:backint_minio1.0.0/ Java 实现
2026-03-21 16:09:14 +08:00
Wu Qing
9bfde8c632 Merge pull request #7 from Awuqing/readme
docs: 为README添加界面截图展示
2026-03-19 23:11:03 +08:00
Awuqing
f7adf30079 docs: 为README添加界面截图展示
添加了八个界面截图文件,并在中英文README文档中新增"Screenshots"章节,用于直观展示应用各主要功能页面的用户界面,方便用户快速了解软件外观和功能布局。
2026-03-19 23:04:03 +08:00
Wu Qing
da2c87d7b0 Merge pull request #2 from Awuqing/dependabot/go_modules/server/go_modules-dd7da38a6b
Bump golang.org/x/crypto from 0.33.0 to 0.45.0 in /server in the go_modules group across 1 directory
2026-03-17 23:41:04 +08:00
dependabot[bot]
9dbe27590a Bump golang.org/x/crypto
Bumps the go_modules group with 1 update in the /server directory: [golang.org/x/crypto](https://github.com/golang/crypto).


Updates `golang.org/x/crypto` from 0.33.0 to 0.45.0
- [Commits](https://github.com/golang/crypto/compare/v0.33.0...v0.45.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-version: 0.45.0
  dependency-type: direct:production
  dependency-group: go_modules
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-03-17 15:36:02 +00:00
Wu Qing
e02a1bb074 Update README for BackupX project references 2026-03-17 18:19:20 +08:00
Wu Qing
5668f89972 Update README for BackupX project references 2026-03-17 18:19:03 +08:00
Awuqing
aff334e1af add some tips V1.0.0 2026-03-17 13:45:31 +08:00
Awuqing
eadd3f8961 first commit 2026-03-17 13:29:09 +08:00