Implement convenience backup and restore strategy#133
Open
michael wants to merge 7 commits into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
f0d30ef to
c771247
Compare
Each site now lives in its own checkout with its own repo, with Editable kept as the upstream remote for upgrades. Consequences: - data.sh resolves the app like the fly CLI: -a flag > FLY_APP env > app in fly.toml, and trims whitespace from flyctl machine ids - Backup names include the app name so data-backups/ stays readable across sites - fly.toml carries region, VM sizing, and volume initial size, so the first deploy is just `fly deploy` - npm scripts cover all data commands (pull/push/backup/backups/ restore), parameterless - New src/custom.css is user-owned and never touched by upstream, keeping `git pull upstream main` conflict-free - README: "Your site is your repo" setup flow (upstream/origin), parameterless deploy guide, -a documented as escape hatch, and a new Upgrading section
Three failure modes found while testing push against a live app: - remote-db.sh: force `sqlite3 -list -noheader` when parsing integrity_check output — newer sqlite3 CLIs render box tables on a tty (fly ssh allocates one), which broke the comparison against 'ok' and aborted the push before the swap - data.sh: clear remote staging leftovers (clean-incoming) at the start of push, pull, and restore — sftp put and VACUUM INTO refuse to overwrite files left behind by an interrupted run - data.sh: set COPYFILE_DISABLE when tarring assets so macOS tar omits xattr headers that GNU tar on the server warns about The sqlite3 fix lives in the container image, so it takes effect on the next `fly deploy`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.