agentleFS
Alex8791-cyberAlex8791-cyber/cognithor/skills/backup/SKILL.md

backup

Skill158 starsChanged 7 months agoApache-2.0View on GitHub

Automated hourly backup skill that creates timestamped archives of Cognithor config files, skill definitions, and data directories on a cron schedule. Use when setting up automated backups, restoring from snapshots, scheduling data protection, or configuring backup retention policies.

13 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use restore and update.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • nikosdionSkill

    restore

    Restore a Joomla or WordPress site backup created by Akeeba Backup (Joomla/WordPress) or Akeeba Solo using Akeeba Kickstart and the Akeeba Backup Restoration Script, including multipart archive handling, restoration configuration, and post-restore cleanup.

    Also in 4 projects that use this

  • AnthropicSkill

    update

    Sync tasks and refresh memory from your current activity. Use when pulling new assignments from your project tracker into TASKS.md, triaging stale or overdue tasks, filling memory gaps for unknown people or projects, or running a comprehensive scan to catch todos buried in chat and email.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Permission denied: Verify $BACKUP_DIR ownership and retry with correct permissions

    line 45

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Backup

Automated backup skill that creates timestamped archives of Cognithor configuration, skills, and data on a cron schedule (0 * * * * — hourly by default).

Steps

  1. Check prerequisites — verify backup target exists and has write access:
    BACKUP_DIR="${COGNITHOR_HOME:-$HOME/.cognithor}/backups"
    mkdir -p "$BACKUP_DIR" && test -w "$BACKUP_DIR"
  2. Create timestamped archive of config, skills, and data:
    STAMP=$(date +%Y%m%d_%H%M%S)
    tar czf "$BACKUP_DIR/cognithor_$STAMP.tar.gz" \
      -C "${COGNITHOR_HOME:-$HOME/.cognithor}" \
      config/ skills/ data/
  3. Validate integrity — verify the archive is readable:
    tar tzf "$BACKUP_DIR/cognithor_$STAMP.tar.gz" > /dev/null
  4. Prune old backups — keep the last 24 hourly snapshots:
    ls -1t "$BACKUP_DIR"/cognithor_*.tar.gz | tail -n +25 | xargs rm -f
  5. Return status — the skill returns {"status": "ok", "automated": true} on success

Example

User > Starte ein Backup meiner Cognithor-Daten
Cognithor > Backup erstellt: cognithor_20260420_140000.tar.gz (12 MB)
         Nächstes automatisches Backup: 15:00 Uhr

Error Handling

  • Disk full: Log warning, skip archive creation, alert user to free space
  • Permission denied: Verify $BACKUP_DIR ownership and retry with correct permissions
  • Corrupt archive: Re-run backup immediately; if persistent, check filesystem health

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.