# Send Cron Backup to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "cron-backup",
    "name": "Cron Backup",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/zfanmy/cron-backup",
    "canonicalUrl": "https://clawhub.ai/zfanmy/cron-backup",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/cron-backup",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=cron-backup",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "scripts/backup-versioned.sh",
      "scripts/backup.sh",
      "scripts/cleanup.sh",
      "scripts/list-backups.sh",
      "scripts/setup-cron.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/cron-backup"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/cron-backup",
    "downloadUrl": "https://openagent3.xyz/downloads/cron-backup",
    "agentUrl": "https://openagent3.xyz/skills/cron-backup/agent",
    "manifestUrl": "https://openagent3.xyz/skills/cron-backup/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/cron-backup/agent.md"
  }
}
```
## Documentation

### Cron Backup

Automated backup scheduling with version detection and intelligent cleanup.

### One-Time Backup

# Backup a directory with timestamp
./scripts/backup.sh /path/to/source /path/to/backup/dir

# Backup with custom name
./scripts/backup.sh /path/to/source /path/to/backup/dir my-backup

### Schedule Daily Backup

# Set up daily backup at 2 AM
./scripts/setup-cron.sh daily /path/to/source /path/to/backup/dir "0 2 * * *"

### Version-Aware Backup

# Backup only when version changes
./scripts/backup-versioned.sh /path/to/source /path/to/version/file /path/to/backup/dir

### Cleanup Old Backups

# Keep only last 7 days of backups
./scripts/cleanup.sh /path/to/backup/dir 7

### 1. Directory Backup

Creates timestamped tar.gz archives
Preserves file permissions and structure
Excludes common temp files (node_modules, .git, etc.)

### 2. Version-Triggered Backup

Monitors version file or command output
Backs up only when version changes
Useful for software updates

### 3. Scheduled Execution

Integrates with system cron
Supports custom schedules
Logs execution results

### 4. Automatic Cleanup

Deletes backups older than N days
Keeps minimum number of backups
Prevents disk space exhaustion

### Scripts

All scripts are in scripts/ directory:

backup.sh - Single backup execution
backup-versioned.sh - Version-triggered backup
setup-cron.sh - Cron job setup
cleanup.sh - Old backup cleanup
list-backups.sh - List available backups

### Backup Naming Convention

Backups follow the pattern: {name}_YYYYMMDD_HHMMSS.tar.gz

Examples:

openclabak_20260204_101500.tar.gz
myapp_20260204_000000.tar.gz

### Setting Up Automated Backups

Decide backup strategy

What to backup (source directory)
Where to store (backup directory)
How often (schedule)
Retention policy (cleanup days)



Run initial backup
./scripts/backup.sh /source /backup



Set up schedule
./scripts/setup-cron.sh daily /source /backup "0 2 * * *"



Configure cleanup
./scripts/setup-cron.sh cleanup /backup "" "0 3 * * *" 7

### Version-Aware Backup Workflow

For software that changes version (like OpenClaw):

Identify version source

Command: openclaw --version
File: /path/to/version.txt



Set up versioned backup
./scripts/backup-versioned.sh /app /app/version.txt /backups/app



Schedule version check
./scripts/setup-cron.sh versioned /app /backups/app "0 */6 * * *"

### Pattern 1: Daily User Data Backup

# Backup workspace daily, keep 30 days
./scripts/setup-cron.sh daily /home/user/workspace /backups/workspace "0 2 * * *"
./scripts/setup-cron.sh cleanup /backups/workspace "" "0 3 * * *" 30

### Pattern 2: Version-Aware Application Backup

# Backup when application updates
./scripts/setup-cron.sh versioned /opt/myapp /backups/myapp "0 */6 * * *"
./scripts/setup-cron.sh cleanup /backups/myapp "" "0 4 * * 0" 10

### Pattern 3: Multi-Directory Backup

# Backup multiple directories
./scripts/backup.sh /home/user/.config /backups/config
./scripts/backup.sh /home/user/projects /backups/projects

### Cron Schedule Format

Standard cron format: minute hour day month weekday

Common schedules:

Daily at 2 AM: 0 2 * * *
Every 6 hours: 0 */6 * * *
Weekly on Sunday: 0 0 * * 0
Every 30 minutes: */30 * * * *

### Cleanup Policies

Time-based: Keep backups for N days
Count-based: Keep last N backups
Combined: Default keeps 7 days minimum, but at least 3 backups

### Troubleshooting

Permission denied: Ensure scripts are executable (chmod +x scripts/*.sh)
Cron not running: Check cron service status (systemctl status cron)
Disk full: Run cleanup manually or reduce retention period
Backup fails: Check source directory exists and is readable
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: zfanmy
- Version: 0.3.2
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/cron-backup)
- [Send to Agent page](https://openagent3.xyz/skills/cron-backup/agent)
- [JSON manifest](https://openagent3.xyz/skills/cron-backup/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/cron-backup/agent.md)
- [Download page](https://openagent3.xyz/downloads/cron-backup)