Commit Graph
24 Commits
Author SHA1 Message Date
trex Bot cbf0cbd963 Merge pull request #3 from jblu/feat/crond-scheduler
ci / docker (push) Successful in 17s
2026-11-24 22:24:36 -06:00
trex Bot ce825c7526 feat: schedule with busybox crond instead of supercronic
Same scheduler qbit-maid uses: entrypoint.sh writes the crontab and execs
crond -f. Drops the supercronic package from the image.

- crontab lives in /tmp/crontabs because the rootfs is read-only
- MAILTO= keeps job output on crond's stdout/stderr (container log), which
  is what supercronic -passthrough-logs provided
- busybox crond only loads crontab files owned by uid 0 and calls
  initgroups() per job, so the container needs root + CAP_SETGID; the
  entrypoint now fails fast (exit 78) when it is not root
- no @reboot job: a container restart must not start a backup
2026-11-24 22:24:29 -06:00
trex Bot 313db934e4 fix: Kuma has no /start or /fail path — push ?status=up|down instead
A request to /api/push/<token>/start or /fail answers 200 but records no
heartbeat, so a failed run left the push monitor green until its 24h
interval expired. Verified against Uptime Kuma 1.23.17: only the query
string form writes a heartbeat.
2026-11-24 15:05:03 -06:00
trex Bot dc6a2f4794 ci: push to the trex registry namespace with a trex-owned token 2026-11-24 14:41:49 -06:00
trex Bot 40d950be30 Rewrite as an online restic backup (#2) 2026-11-24 14:39:18 -06:00
trex Bot dce11df819 Rewrite as an online restic backup
The 2023 prototype could not work against the current stack and, where it
did run, reported success while doing nothing: it dumped from a stale IP
(192.168.4.11) that is not even the Seafile database, joined a network the
DB is not on, used a mistyped seahub.sh path, and discarded every exit code.

Replace it with a single orchestrator that:

* never stops Seafile - the DB dump uses --single-transaction and the block
  store is content-addressed and immutable, so restic can read it live;
* reads the DB credentials from the Seafile conf/.env instead of duplicating
  them in the stack .env;
* dumps with --quick --routines --events --triggers --add-drop-table (the old
  --skip-opt produced a dump with no DROP TABLE, i.e. unrestorable over an
  existing database) and passes the password via MYSQL_PWD;
* puts the dump inside the restic snapshot, so a restore needs one source;
* drops rclone entirely - it cannot write to the RustFS buckets (403 on every
  bucket) and `sync` is the wrong semantics for a backup;
* checks every step, exits non-zero on failure, pings the Kuma push monitor
  with /start, /fail or the result, and sends a failure notification;
* takes an exclusive lock, verifies the dump trailer and the snapshot, and
  only then prunes old dump directories;
* keeps a second restic repository on a different physical disk;
* runs as a non-root image with a read-only rootfs and no capabilities.

Also: replace the dead Drone pipeline with a Gitea Actions build, drop the
unused python-dotenv/requests dependencies, and fix the README.
2026-11-24 14:39:11 -06:00
jblu ae8320118a attempting to fix docker run issues
continuous-integration/drone/push Build is passing
2024-06-08 14:04:21 -05:00
jblu 07fedd0b0b updated healthcheck
continuous-integration/drone/push Build is passing
2024-06-03 20:02:31 -05:00
jblu f17988bfa9 changed the healthcheck
continuous-integration/drone/push Build is passing
2024-06-03 12:47:31 -05:00
jblu c79625a64a Merge pull request 'updated documentation' (#1) from update-docs into main
continuous-integration/drone/push Build is passing
Reviewed-on: #1
2024-05-28 16:00:18 -05:00
jblu 8e40af9002 updated documentation
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is failing
2024-05-28 15:59:05 -05:00
jblu e8ac879403 Updated healthchecks to have a run time
continuous-integration/drone/push Build is passing
2024-05-28 15:43:54 -05:00
jblu 58ea766027 yet more bugs
continuous-integration/drone/push Build is passing
2023-08-29 14:14:04 -05:00
jblu 1f8d77b98d fixed some bugs
continuous-integration/drone/push Build is passing
2023-08-29 09:25:09 -05:00
jblu d0d187f203 fixed config creation
continuous-integration/drone/push Build is passing
2023-08-28 14:55:47 -05:00
jblu e1ffc66b71 adjusted rclone logging
continuous-integration/drone/push Build is passing
2023-08-26 14:23:36 -05:00
jblu f8331bfbae progress on backup
continuous-integration/drone/push Build is passing
2023-08-26 12:42:46 -05:00
jblu c2bb5556a3 updated making directory for database dumps
continuous-integration/drone/push Build is passing
2023-08-26 12:33:30 -05:00
jblu 66c7597076 changed drone file name
continuous-integration/drone/push Build is passing
2023-08-26 02:57:01 -05:00
jblu 3df44cb41e updated ci/cd 2023-08-26 02:55:22 -05:00
jblu e997841034 working rc1 2023-08-26 02:46:07 -05:00
jblu d0e1100689 more thoughts 2023-08-15 22:25:44 -05:00
jblu e00a049ba7 Initial thoughts 2023-08-15 21:35:05 -05:00
jblu 79cdd5cc4a Initial commit 2023-08-15 20:21:41 -05:00