プロンプトOpenClaw

特定用途Hourly · SQLite + Google Drive

Hourly encrypted database backups

活用例

The CRM, the knowledge base, and the social snapshots all live on one machine. Once an hour, OpenClaw finds every SQLite file, packs them into an encrypted archive, and puts the archive on Google Drive. You keep a week of copies, and a restore script for the day the laptop does not turn on.

接続するもの

Google Drive, and a passphrase that is not stored in the repo. Telegram for failures.

セットアップ

  1. Create a Drive folder at [DRIVE BACKUP FOLDER] and connect Drive with access to that folder only.
  2. Set BACKUP_PASSPHRASE in the environment, not in a file you might commit.
  3. Save a restore script at [RESTORE SCRIPT PATH] that downloads a chosen archive, decrypts it, and puts the databases back.
  4. Schedule the job hourly.
  5. Run it once, confirm seven is the cap, and confirm a forced failure sends a Telegram alert.

送信前に編集してください:The Drive folder, where the passphrase lives, and the restore script path.

OpenClaw に貼り付けるプロンプト

Save this as a skill named db-backup. Run it every hour. Find every SQLite database under [PROJECT ROOT]. Do not keep a hand-written list. A new .sqlite or .db file should be included on the next run without a config change. Bundle them into one tar archive, encrypt it with [BACKUP PASSPHRASE], and upload it to [DRIVE BACKUP FOLDER]. Name the file with the UTC timestamp. Keep the last 7 archives. Delete older ones from Drive after the newest upload succeeds. The restore script at [RESTORE SCRIPT PATH] should: list the seven archives, download the one I name, decrypt it, and copy the databases back to their original paths. Do not run a restore unless I ask. If a backup fails, alert me immediately in the [CRON] Telegram topic and say which step failed. Do not stay quiet on a failure. A successful hour stays quiet.

一緒に使うプロンプト

これらの OpenClaw プロンプトは、このプロンプトを呼び出すか、このプロンプトから呼び出されます。まとめて設定してください。

  • Hourly git sync that stops on a conflict

    The code on the laptop is the other half of the backup. Every hour OpenClaw commits what changed and pushes it. If the remote has moved, you get a message instead of a forced merge. A hook keeps browser cookies and session files out of the commit.

  • Google Workspace, read-first

    Mail, calendar, and Drive are the pipes the other skills use. You connect them once with OAuth. OpenClaw can read the inbox, see the day, and store backups. Sending mail, or creating a Doc, still waits for you.

OpenClaw のその他のプロンプト

  • A prompting guide for the model you actually run

    OpenClaw is a pile of markdown instructions, and each model follows them differently. You keep one local guide for the model you use. Any time a skill or a prompt file changes, that edit is checked against the guide first.

  • Humanizer for anything a person will read

    Long replies start to sound like a model: the same hinges, the same rhythm, the same three-part lists. A humanizer pass rewrites user-facing prose before it goes out, and a small test file catches the phrases that keep coming back.

  • Images on demand

    Thumbnails and social images should not mean opening another app. You describe the image, or you hand over pictures to edit or combine, and the file comes back in Telegram with a timestamped name.

  • Short clips on demand

    A short visual is sometimes the whole asset. You describe the clip, or you start from a still, and a short video comes back in Telegram. The local download does not linger on the laptop.