Back up and restore databases from the Linux app
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 35/100
調査の方向性
Read linux/ROADMAP.md, features/backup-restore.mdx, and the Flatpak decision at linux/docs/decisions/0008-flatpak-sandbox-permissions.md; compare the Linux package manifests and current export flow. First decide whether the feature belongs in the backlog and how Flatpak will handle client tools. Done means PostgreSQL and SQLite backup and restore work from the app on PPA and COPR packages.
索引モデルが issue の本文から書いたものです。
説明
Problem
The Linux app cannot back up or restore a database. linux/ROADMAP.md, Backlog, Ideas lists "backup and restore" as not committed. The macOS app has both (features/backup-restore.mdx).
Two facts shape how it can work on Linux:
- For PostgreSQL and MySQL the usual tools are
pg_dump,pg_restore,mysqldumpandmariadb-dump, programs on the host. Neither package depends on them today (linux/build-aux/debian/control,linux/build-aux/rpm/tablepro.spec). - The Flatpak cannot run host programs (
linux/docs/decisions/0008-flatpak-sandbox-permissions.md, Consequences), so it would need its own copies or no backup at all.
Proposed solution
- Decide whether backup and restore move from Ideas into the backlog, and record it in
linux/ROADMAP.md. - If yes, a first version:
- Back Up a database to a file, run off the GTK thread with progress and Stop, as exports run today.
- SQLite with
VACUUM INTO, through the driver, with no outside tool. - PostgreSQL with
pg_dumpin custom or plain format, and MySQL and MariaDB withmysqldumpormariadb-dump, found onPATH, with the packages recommending the client tools. - The password goes to the tool through a private file or the environment, never the command line, and an SSH tunnel's local forward is the host it connects to.
- Restore from a file asks first, names the target database, and is refused on a read-only connection.
- SQL Server and ClickHouse back up on the server's side, to paths on the server; leave them out of the first version, or offer only the statement, previewed.
- Decide for the Flatpak: bundle the client tools, or show that backup needs the distribution package.
Done means: a PostgreSQL and a SQLite database can be backed up to a file and restored from it, from the app, on the PPA and COPR packages.
Alternatives considered
Run pg_dump or mysqldump in a terminal, through the same SSH tunnel by hand.
Platform
Linux
Related database type
N/A / General
- 主要言語
- Swift
- スター
- 6.2k
- フォーク
- 412
- 平均マージ
- 3時間 56分
- マージ済み PR(30日)
- 669
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TableProApp/TablePro のほかの issue
-
Linux: Remember Password fails silently when there is no default keyring対応中かも @datlechin が今日担当しました。 オープンbug platform-linux
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
TableProApp/TablePro#4098 ·
メンテナーはふだん 1 日以内に返信
-
bug platform-linux
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
TableProApp/TablePro#4101 ·
メンテナーはふだん 1 日以内に返信
-
bug platform-linux
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
TableProApp/TablePro#4099 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement platform-macos
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
TableProApp/TablePro#4071 ·
メンテナーはふだん 1 日以内に返信
-
enhancement platform-macos
難易度 3/5 1〜2日 初心者へのやさしさ 66/100
TableProApp/TablePro#4070 ·
メンテナーはふだん 1 日以内に返信
TableProApp/TablePro の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
OneBusAway/vehicle-positions#260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
eliasstravik/herdr-projects#789 · コメント 1 件 ·
-
follow-up needs-triage S3: minor
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
manaflow-ai/cmux#38032 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
arkavo-org/ArkavoKit#70 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
vorssaint/vorssaint-utils#3933 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信