Rechercher

PythonReactSEOPDF
OpenClaw

workspace-git-backup

Set up automatic scheduled backups to GitHub or GitLab. Use when users want to backup their OpenClaw workspace or other directories. Supports GitHub CLI for easy repo creation. Works on macOS (launchd) and Linux (cron).

cooperun0 installations selon la source☆ 0 Étoiles du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

SkillHub CLI

skillhub install cooperun/workspace-git-backup

Examinez la source et la compatibilité, puis suivez les étapes d’installation.

Donnez le lien à votre agent et demandez-lui d’examiner instructions et dépendances avant d’expliquer les étapes.

Voir la source ↗Guides

Instructions

GitHub Backup

Automatic scheduled backup of any directory to a remote Git repository.

Setup Flow

When user asks for backup setup, follow these steps:

1. Ask for backup directory

Default: ~/.openclaw/workspace

2. Configure remote repository

If GitHub CLI (gh) is available and authenticated:

Ask user:

  • "新建 GitHub 仓库 还是 同步到已有仓库?"

New repo:

gh repo create <name> --private --source=<backup-path> --remote=origin

Existing repo:

# List repos
gh repo list --limit 50

# Add remote (user provides repo name or URL)
git -C <backup-path> remote add origin <url>

If no GitHub CLI:

  • Ask user for repository URL directly
3. Create config file
cat > ~/.openclaw/workspace/.backup-config.json << 'EOF'
{
  "backupPath": "<backup-path>",
  "gitRemote": "<repo-url>",
  "schedule": "0 12,0 * * *",
  "updateTimestamp": true
}
EOF
4. Install backup script
mkdir -p ~/.openclaw/scripts
cp <skill-path>/scripts/backup.sh ~/.openclaw/scripts/github-backup.sh
chmod +x ~/.openclaw/scripts/github-backup.sh
5. Install scheduled task

macOS (launchd):

bash <skill-path>/scripts/install-launchd.sh

Linux (cron):

bash <skill-path>/scripts/install-cron.sh
6. Optional: First backup
bash ~/.openclaw/scripts/github-backup.sh

Commands

After setup, user can:

Command Action
bash ~/.openclaw/scripts/github-backup.sh Manual backup
bash <skill-path>/scripts/manage.sh status Check status
bash <skill-path>/scripts/manage.sh logs View logs
bash <skill-path>/scripts/manage.sh uninstall Remove scheduled task

Configuration

Config: ~/.openclaw/workspace/.backup-config.json

Field Default Description
backupPath ~/.openclaw/workspace Directory to backup
gitRemote required Repository URL
schedule 0 12,0 * * * C...

Informations sur la source

Source
github
Repository
openclaw/skills
Path
skills/cooperun/workspace-git-backup
Version
—
Commit
d83b06e2abb9b39530c7b236a32f686d9013e252
Source de classification
rules
Statut
active
Visibilité
public

Ces informations proviennent de l’analyse indexée et peuvent être anciennes. Vérifiez les fichiers actuels.

Contenu extrait

SKILL.md
# GitHub Backup

Automatic scheduled backup of any directory to a remote Git repository.

## Setup Flow

When user asks for backup setup, follow these steps:

### 1. Ask for backup directory

Default: `~/.openclaw/workspace`

### 2. Configure remote repository

**If GitHub CLI (`gh`) is available and authenticated:**

Ask user:
- "新建 GitHub 仓库 还是 同步到已有仓库?"

**New repo:**
```bash
gh repo create <name> --private --source=<backup-path> --remote=origin
```

**Existing repo:**
```bash
# List repos
gh repo list --limit 50

# Add remote (user provides repo name or URL)
git -C <backup-path> remote add origin <url>
```

**If no GitHub CLI:**
- Ask user for repository URL directly

### 3. Create config file

```bash
cat > ~/.openclaw/workspace/.backup-config.json << 'EOF'
{
  "backupPath": "<backup-path>",
  "gitRemote": "<repo-url>",
  "schedule": "0 12,0 * * *",
  "updateTimestamp": true
}
EOF
```

### 4. Install backup script

```bash
mkdir -p ~/.openclaw/scripts
cp <skill-path>/scripts/backup.sh ~/.openclaw/scripts/github-backup.sh
chmod +x ~/.openclaw/scripts/github-backup.sh
```

### 5. Install scheduled task

**macOS (launchd):**
```bash
bash <skill-path>/scripts/install-launchd.sh
```

**Linux (cron):**
```bash
bash <skill-path>/scripts/install-cron.sh
```

### 6. Optional: First backup

```bash
bash ~/.openclaw/scripts/github-backup.sh
```

## Commands

After setup, user can:

| Command | Action |
|---------|--------|
| `bash ~/.openclaw/scripts/github-backup.sh` | Manual backup |
| `bash <skill-path>/scripts/manage.sh status` | Check status |
| `bash <skill-path>/scripts/manage.sh logs` | View logs |
| `bash <skill-path>/scripts/manage.sh uninstall` | Remove scheduled task |

## Configuration

Config: `~/.openclaw/workspace/.backup-config.json`

| Field | Default | Description |
|-------|---------|-------------|
| `backupPath` | `~/.openclaw/workspace` | Directory to backup |
| `gitRemote` | required | Repository URL |
| `schedule` | `0 12,0 * * *` | C...

Skills associés

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

0protocol

0isone

Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.

OpenClaw

0x0-messenger

eijiac24

Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.