diff --git a/platform/shell-sync/Makefile b/platform/shell-sync/Makefile index 664f01f6..cf17e141 100644 --- a/platform/shell-sync/Makefile +++ b/platform/shell-sync/Makefile @@ -55,3 +55,19 @@ sync: fi docker compose exec imapsync sync.sh sync $(ACCOUNT) +# Force a full batch now (all configured accounts) +sync-all: + docker compose exec imapsync sync.sh sync-all + +# Enter container shell +shell: + docker compose exec imapsync sync.sh shell + +# Clean up +clean: + docker compose down -v + rm -rf logs/*.log logs/*.last_* logs/.heartbeat logs/.notification_failed + +# One-shot sync (build, run once, exit) +once: + ONCE=true docker compose up --build --abort-on-container-exit