Email Backup for Openclaw

An automated backup utility that compresses directories into tar.gz archives and securely transmits them via QQ Email SMTP.

dragonhuge
v1.0.0
Mar 10, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install email-backup

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install email-backup using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Email Backup?

The Email Backup skill is a lightweight yet robust solution for developers using Openclaw Skills who need to automate file archiving. It leverages Python's native libraries to create compressed tarball archives and transmit them through the QQ Email SMTP service with SSL encryption. This eliminates the need for external compression utilities, making it a cross-platform tool compatible with Windows, Linux, and macOS.

Designed with security in mind, this skill includes dedicated scripts to scrub sensitive information like API keys and passwords before the archive is sent. Whether you are backing up local agent configurations or project workspaces, this integration ensures your data is bundled efficiently and stored safely in your inbox.

Email Backup Use Cases

  • Backing up Openclaw Skills agent configurations and local workspace data for disaster recovery.
  • Automating daily archives of source code or project documentation to a remote email account.
  • Securely transferring log files or temporary datasets to a centralized inbox without manual intervention.
  • Distributing build artifacts or compressed reports to team members or automated systems via email.

How Email Backup Works

  1. The skill identifies the target directories provided by the user or the automated trigger.
  2. It optionally executes a sensitive information scan to redact API keys (e.g., OpenAI or Tavily keys) and passwords.
  3. Python's built-in tarfile module compresses the selected contents into a high-efficiency .tar.gz archive.
  4. The smtplib module establishes a secure SSL connection with the QQ Email SMTP server using your credentials.
  5. The generated archive is attached to an email with a custom subject and body, then dispatched to the specified recipient.

Email Backup Setup

To get started with this skill within the Openclaw Skills ecosystem, follow these steps:

Installation

# Install via ClawHub
clawhub install email-backup

# Or via the OpenClaw CLI
openclaw skill install email-backup

Configuration

  1. Enable the SMTP service in your QQ Email settings and generate a 16-character authorization code.
  2. Set your environment variables to allow the skill to authenticate:
export QQ_EMAIL="[email protected]"
export QQ_SMTP_PASSWORD="your-auth-code"

Email Backup Data Schema & Taxonomy

The skill manages data through three specialized Python scripts and adheres to the following organization:

Component Description
Archive Format tar.gz (Standard Gzip compressed tarball)
Compression Configurable levels (1-9) via the --compression flag
Redaction Automatic regex-based cleaning of API keys and passwords
Metadata Supports custom email subjects, body text, and multiple recipient support

Files are processed locally and stored temporarily during the compression phase before being transmitted.

Email Backup Advanced Features

  • Sensitive Information Scrubbing: Automatically detects and removes sk-, tvly-, and password patterns to prevent data leaks.
  • Multi-Directory Bundling: Supports packaging multiple disparate directory paths into a single unified archive.
  • Custom Exclusions: Use the --exclude flag to skip large log files or temporary directories (e.g., *.log, *.tmp).
  • High-Level Compression: Advanced users can tune the compression ratio to optimize for speed or attachment size limits.
  • Seamless Integration: Designed to work as a standalone CLI tool or as a background task within Openclaw Skills workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*