zfanmy

Cron Backup

IT Ops & Securityv0.3.2
By zfanmyUpdated 2026-05-175 versions · latest released 2026-02-18cron-backup@clawhub_zfanmy/cron-backup
Server OpsDevOps#Backup#Cron#Schedule

According to AlphaMoat, as of 2026-10, Cron Backup has 6,911 downloads and 1 stars — ranked by downloads #4,094 among 10,914 AI skills in this ranking, and #124 of 502 in IT Ops & Security.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
6.9K
Stars
1
Overall download rank
#4,094
Top 38% overall · Top 25% in IT Ops & Security
PlatformDownloadsStarsComments
ClawHub ↗5.4K1-
SkillHub ↗6.9K1—

Platforms count differently and update at different times.

What this skill does

The documentation covers one-time and scheduled backups, version-change triggers, and cleanup of old copies. Scheduled jobs persist, and cleanup may delete historical data; verify source paths, destination, retention rules, and cron commands before enabling. The source reports unsafe path/version-command and cron construction; do not schedule these jobs until that handling is fixed and reviewed. Use trusted paths and a least-privileged account, never root; cleanup permanently removes matching archives.

Profile published 2026-10-27

What you can do with it

  • Design a backup directory structure
  • Outline change detection and retention
  • Review a scheduled backup and cleanup plan

When to use it

  • When protecting configuration or user data
  • Before scheduling jobs or deleting old backups, verify paths, retention, and restoration tests

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Propose a backup and retention plan for these files and list anything that could be deleted; do not create cron jobs or clean files.

Monthly Trend

Downloads6.9K
4.0K5.6K7.1K2026-05 · Downloads 4.2K2026-06 · Downloads 4.4K2026-07 · Downloads 4.8K2026-08 · Downloads 5.0K2026-09 · Downloads 5.3K2026-10 · Downloads 6.9K26-0526-0926-10
Stars1
0122026-05 · Stars 12026-06 · Stars 12026-07 · Stars 12026-08 · Stars 12026-09 · Stars 12026-10 · Stars 126-0526-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-106.9K—1
2026-095.3K—1
2026-085.0K+4.5%1
2026-074.8K+8.2%1
2026-064.4K+4.5%1
2026-054.2K—1

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

4.4 KB · ClawHub v0.3.2
---
name: cron-backup
description: Set up scheduled automated backups with version tracking and cleanup. Use when users need to (1) Schedule periodic backups of directories or files, (2) Monitor version changes and backup on updates, (3) Automatically clean up old backups to save space, (4) Create backup strategies for configuration files, code repositories, or user data.
---

# Cron Backup

Automated backup scheduling with version detection and intelligent cleanup.

## Quick Start
Show all (167 lines)

### One-Time Backup
```bash
# 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
```bash
# Set up daily backup at 2 AM
./scripts/setup-cron.sh daily /path/to/source /path/to/backup/dir "0 2 * * *"
```

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

### Cleanup Old Backups
```bash
# Keep only last 7 days of backups
./scripts/cleanup.sh /path/to/backup/dir 7
```

## Core Capabilities

### 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`

## Workflow

### Setting Up Automated Backups

1. **Decide backup strategy**
   - What to backup (source directory)
   - Where to store (backup directory)
   - How often (schedule)
   - Retention policy (cleanup days)

2. **Run initial backup**
   ```bash
   ./scripts/backup.sh /source /backup
   ```

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

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

### Version-Aware Backup Workflow

For software that changes version (like OpenClaw):

1. **Identify version source**
   - Command: `openclaw --version`
   - File: `/path/to/version.txt`

2. **Set up versioned backup**
   ```bash
   ./scripts/backup-versioned.sh /app /app/version.txt /backups/app
   ```

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

## Common Patterns

### Pattern 1: Daily User Data Backup
```bash
# 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
```bash
# 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
```bash
# 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

Popular in IT Ops & Security

钟馗.skillIT Ops & Security

钟馗.Skill——会更新漏洞库的安全审查专家。直来直去、快刀斩乱麻,三层审查(静态审计/行为模拟/供应链溯源)覆盖12类风险,输出结构化安全裁定(✅干净/⚠️可疑/🚫恶意)。Use when 用户说"审查这个Skill"、"安全检查"、"钟馗看下"、"审一下"、"查一下这个skill"、安装Skill前的安全评估、或需要审计SKILL.md的恶意载荷。

↓ 336.9K★ 17user_741dc82b
SkillScanIT Ops & Security

Scans skill packages for risk before use and gates installation on the verdict.

↓ 183.2K★ 41tokauthai
Free Ride - Unlimited free AIIT Ops & Security

A tool that configures free OpenRouter models and a fallback chain for OpenClaw.

↓ 134.1K★ 492Shaishav Pidadi
a ca s ca s c ca s cIT Ops & Security

Parse, search, and analyze application logs across formats. Use when debugging from log files, setting up structured logging, analyzing error patterns, correlating events across services, parsing stack traces, or monitoring log output in real time.

↓ 124.9K★ -user_60e896a0
Skill ScannerIT Ops & Security

Security checks for installing skills, packages, or plugins. Use BEFORE any npm install, openclaw plugins install, clawhub install, or similar install...

↓ 93.2K★ 4sudhindrat
网安技能IT Ops & Security

网络安全与SRC漏洞掘金实战技能。融合「系统学习路径」与「SRC实战掘金」双模式: ①学习模式=法律→基础→工具→靶场→攻防→就业全流程; ②实战模式=直接指导在腾讯TSRC、阿里ASRC、百度BSRC等平台挖掘高价值漏洞变现。 当用户提出以下问题时触发: "我想学网络安全怎么入门""SRC漏洞怎么挖能赚钱""渗透测试需要学什么" "Web安全漏洞原理是什么""怎么准备CTF比赛""护网面试会问什么" "云安全怎么学""挖漏洞赚钱的方法""端口扫描脚本怎么写" "SQL注入怎么检测""子域名怎么枚举""XSS漏洞怎么找" "靶场怎么搭建""Kali Linux怎么用""Metasploit怎么入门" "等保测评是什么""代码审计怎么做""内网渗透怎么学" "信息泄露漏洞怎么挖""越权漏洞怎么测试""逻辑漏洞挖掘技巧" "简历怎么写才能进安全公司""安全行业面试题有哪些" "Burp Suite怎么用""DVWA怎么安装""Pikachu靶场搭建" "Vulhub漏洞复现""网络安全法有什么规定""CTF夺旗赛怎么参加" "AWD比赛是什么""应急响应怎么做""攻击溯源怎么搞" "数据安全怎么保障""公有云安全怎么防护""私有云攻防怎么做" "云原生安全是什么"。

↓ 80.5K★ 16user_d2cc4baf
人人都能成为黑客v2.0(Lvan)IT Ops & Security

Unified Web penetration testing and SRC vulnerability hunting Skill. Model-driven threat modeling (12 dimensions), JSON 字段规范 state persistence, SRC/补天 compliant reporting with confirmed gate (3-layer determination). Use when user asks for authorized penetration testing, vulnerability assessment, SRC hunting (补天/Butian/vendor SRC/CNVD/众测), bug bounty, security evaluation with explicit target URL, or wants operational Recon→PoC→Report workflow. Do NOT use for CTF challenges, unauthorized testing, mobile app testing, infrastructure scanning, or social engineering.

↓ 56.8K★ 37user_a730098d
skill-vetterIT Ops & Security

Security-first skill vetting for AI agents. Use before installing any skill from ClawdHub, GitHub, or other sources. Checks for red flags, permission scope, and suspicious patterns.

↓ 54.0K★ -user_814dbe54

More from zfanmy

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.