设置夜间GitHub备份一句话指令

Set up nightly GitHub backups with one sentence

赫尔墨斯接收了一条简单的英文指令,利用其GitHub技能,创建并验证了一个夜间推送的cron作业,并添加了每小时自我检查以处理UTC与中央时间之间的差异.

软件与开发运维 Claude Code Claude Codex Gemini hermes-agent mindstudio.ai · 2026-10-22

做了什么

Through Telegram, the user sent one sentence asking for a nightly push to a GitHub repo at midnight central time. Hermes searched its built-in GitHub skills, ran terminal checks, created the cron job and a nightly-github-sync skill, then listed jobs to confirm it registered. It also noted the automation in memory.md. The user first stored the GitHub token through the server terminal, not in chat.

效果如何

The job registered and was verified. Hermes saw the Docker container runs in UTC and chose an hourly run that checks central time, which avoids daylight-saving breakage. The source gives no run results or numbers.

值得注意

Set the GitHub token with hermes config set over SSH, not in chat, and use a fine-grained token scoped to one repo with contents read/write.

试试这个 Prompt

Back up [folder path] to my GitHub repo [repo URL] every night at [time] in [my timezone]. Create the scheduled job, handle any UTC versus local time differences, and add an hourly self-check that confirms the last push succeeded and alerts me on [Telegram / other channel] if it did not. Before the first push, show me what files will be included and wait for my OK, then run a test and verify the commit appears on GitHub.

阅读原文 ↗

相关用例