Back up and restore databases from the Linux app
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- Swift
- Sterne
- 6.2k
- Forks
- 412
- Ø Merge
- 3 Std. 56 Min.
- Gemergte PRs (30 T.)
- 669
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus TableProApp/TablePro
-
Linux: Remember Password fails silently when there is no default keyringEvtl. vergeben @datlechin hat das heute übernommen. Offenbug platform-linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
TableProApp/TablePro#4098 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug platform-linux
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 35/100
TableProApp/TablePro#4101 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug platform-linux
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
TableProApp/TablePro#4099 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement platform-macos
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
TableProApp/TablePro#4071 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement platform-macos
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 66/100
TableProApp/TablePro#4070 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in TableProApp/TablePro
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
OneBusAway/vehicle-positions#260 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
eliasstravik/herdr-projects#789 · 1 Kommentar ·
-
follow-up needs-triage S3: minor
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
manaflow-ai/cmux#38032 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
arkavo-org/ArkavoKit#70 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
vorssaint/vorssaint-utils#3933 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 2 Tagen