build(deploy): the server's checkout is ~deploy/halkyon, the repository's name
The folder kept its name from before the monorepo (ADR 0015), though Train and Todo deploy from it too. redeploy.sh, the backup's units and the operator's steps name ~deploy/halkyon; the Compose project keeps the name halkyon-learn, as Docker names its volumes after it. The server moves after this is deployed: the running redeploy.sh is read whole before it runs, so the deploy of this commit still works in the old folder; then the folder is moved, the pinned commands in deploy's authorized_keys and the backup's units changed, and the containers recreated on the new paths. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
384fc38919
commit
5469ce791f
1 changed files with 36 additions and 33 deletions
|
|
@ -112,20 +112,20 @@ echo 'sftp:storagebox:restic' >~/.config/restic/repository
|
|||
cat ~/.config/restic/password # into the password manager
|
||||
export RESTIC_REPOSITORY_FILE=~/.config/restic/repository RESTIC_PASSWORD_FILE=~/.config/restic/password
|
||||
restic init
|
||||
~/halkyon-learn/deploy/backup.sh # the first backup, by hand
|
||||
~/halkyon/deploy/backup.sh # the first backup, by hand
|
||||
```
|
||||
|
||||
### 4. The timer (an admin with sudo, on the server)
|
||||
|
||||
```sh
|
||||
sudo cp /home/deploy/halkyon-learn/deploy/backup/halkyon-backup.service \
|
||||
/home/deploy/halkyon-learn/deploy/backup/halkyon-backup.timer /etc/systemd/system/
|
||||
sudo cp /home/deploy/halkyon/deploy/backup/halkyon-backup.service \
|
||||
/home/deploy/halkyon/deploy/backup/halkyon-backup.timer /etc/systemd/system/
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable --now halkyon-backup.timer
|
||||
systemctl list-timers halkyon-backup.timer
|
||||
```
|
||||
|
||||
The units name `/home/deploy/halkyon-learn`; another checkout needs them changed.
|
||||
The units name `/home/deploy/halkyon`; another checkout needs them changed.
|
||||
|
||||
## Looking at the backups
|
||||
|
||||
|
|
@ -138,7 +138,7 @@ restic check --read-data-subset=5% # reads a twentieth of the data back
|
|||
|
||||
## Restoring
|
||||
|
||||
As `deploy`, in `~/halkyon-learn/deploy`, with the two variables from step 3 exported:
|
||||
As `deploy`, in `~/halkyon/deploy`, with the two variables from step 3 exported:
|
||||
|
||||
```sh
|
||||
export RESTIC_REPOSITORY_FILE=~/.config/restic/repository RESTIC_PASSWORD_FILE=~/.config/restic/password
|
||||
|
|
|
|||
Loading…
Reference in a new issue