mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(installer): let upgrades copy the uploads uncompressed (#2995)
This commit is contained in:
1 parent
e2d05a44a8
commit
153dad11e1
3 files changed
+52
-11
No files matched your search
@@ -156,6 +156,7 @@ The run ends by naming the record it wrote and the command that rolls back to it
|
||||
| `--dry-run` | `-DryRun` | Print the plan. Change nothing |
|
||||
| `--backup-dir <path>` | `-BackupDir` | Where records go. Default `<dir>/backups` |
|
||||
| `--no-volume-backup` | `-NoVolumeBackup` | Take the database dump and skip the uploads copy |
|
||||
| `--no-volume-compression` | `-NoVolumeCompression` | Copy the uploads as a plain `.tar`. Less downtime, more disk |
|
||||
| `--skip-backup-accept-data-loss` | `-SkipBackupAcceptDataLoss` | Upgrade with no backup at all |
|
||||
|
||||
`--dir` and `--ref` mean what they mean on an install, and the installer derives an omitted `--ref` from the `FLUXER_IMAGE_TAG` line in `.env`. Every failure prints a sentence on standard error and exits non-zero, and the script header lists what each code means. A Postgres major version change is exit 3.
|
||||
@@ -218,7 +219,7 @@ Each upgrade writes one record directory, named `record-` and a UTC stamp, under
|
||||
| Artefact | What it covers |
|
||||
| --- | --- |
|
||||
| `fluxer.dump` | Every account, message, guild and configuration row, in the Postgres custom format |
|
||||
| `seaweedfs-data.tgz` | Every upload, avatar, report and harvest |
|
||||
| `seaweedfs-data.tgz` | Every upload, avatar, report and harvest, or `seaweedfs-data.tar` under `--no-volume-compression` |
|
||||
| `.env` | Every secret the instance was built with |
|
||||
|
||||
The stack files sit in the record beside them, so a rollback puts back the exact files the instance was running. The record directory is created `0700` and the `.env` copy inside it is `0600`. Keep records wherever you already keep secrets.
|
||||
@@ -306,7 +307,7 @@ docker run --rm -v fluxer_seaweedfs-data:/data \
|
||||
docker compose up -d
|
||||
```
|
||||
|
||||
`tar` extracts over whatever is already on the volume, so the `find` empties it first. In PowerShell write `${PWD}` instead of `$PWD`. Success is an existing attachment URL answering 200 again. The `fluxer_` prefix is the Compose project name, which `docker-compose.yml` sets to `fluxer`.
|
||||
For a `seaweedfs-data.tar`, write `tar xf` in place of `tar xzf`. `tar` extracts over whatever is already on the volume, so the `find` empties it first. In PowerShell write `${PWD}` instead of `$PWD`. Success is an existing attachment URL answering 200 again. The `fluxer_` prefix is the Compose project name, which `docker-compose.yml` sets to `fluxer`.
|
||||
|
||||
## Move to a new Postgres major version
|
||||
|
||||
|
||||
Reference in new issue
Block a user