file-backup-organizer

Intelligent file backup and organizer. Recursively scans folders, categorizes files by type, supports filtering/exclusion, handles duplicates, and generates detailed reports. Triggers: - User asks to backup a folder - User asks to organize/sort files by type - User mentions WeChat file cleanup, file archiving, file sorting - User says "backup files", "organize folder", "sort files", "clean up files" - User wants to exclude specific file types during backup

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "file-backup-organizer" with this command: npx skills add psyhl/file-backup-organizer

file-backup-organizer v1.0.0 -- Intelligent File Backup & Organizer

Core Functions

FeatureDescription
Recursive ScanScans source folder and all subdirectories
Smart CategorizationAuto-classifies by extension (Word, Excel, PDF, Images, etc.)
Flexible FilteringSupports excluding specific file types (e.g. .tmp, .log, .cache)
Duplicate HandlingAuto-appends sequential numbers to avoid overwriting
Detailed ReportsGenerates backup inventory and deletion lists
Risk WarningsFlags files that may break without directory structure

How to Use

The main script is scripts/backup_files.py. It provides Python functions:

from scripts.backup_files import backup_files, organize_by_type

backup_files(source_path, exclude_extensions=None)

  • source_path: Source folder path (e.g. "D:\Projects")
  • exclude_extensions: List of extensions to exclude (e.g. [".tmp", ".log"])
  • Returns: dict with success status, file counts, categories, backup directory

organize_by_type(source_path)

  • source_path: Source folder path
  • Returns: same as backup_files (without exclusion)

Execution

Run via Python:

python scripts/backup_files.py

Or import and call functions directly in your workflow.

Supported File Types

CategoryExtensions
Word.doc, .docx, .docm, .odt, .rtf
Excel.xls, .xlsx, .xlsm, .csv, .ods
PDF.pdf
PPT.ppt, .pptx, .pptm, .ppsx
Images.jpg, .jpeg, .png, .gif, .bmp, .webp, .svg, .psd
Videos.mp4, .avi, .mkv, .mov
Audio.mp3, .wav, .flac
Archives.zip, .rar, .7z
Code.py, .js, .html, .css, .java, .cpp, .php, .json, .xml
Text.txt, .md, .log

Output

Backup creates a folder named {source}_backup with:

  • Subfolders per file type
  • backup_report.txt -- full inventory with file counts and names
  • exclusion_list.txt -- list of excluded files (only if exclude_extensions used)

Warnings

These file types may break without original directory structure:

  • Web files: .html, .htm, .css, .js
  • Server scripts: .php, .asp, .aspx, .jsp
  • Config files: .json, .xml, .yaml, .ini

Such files are flagged in the backup report.

Dependencies

None -- uses Python standard library only (os, shutil, pathlib, collections, datetime).

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Ephemeral Media Hosting

自動削除機能付き一時メディアホスティングシステム

Registry SourceRecently Updated
General

Ethereum Read Only

Foundry castを使用したウォレット不要のオンチェーン状態読み取り

Registry SourceRecently Updated
General

OpenClaw Memory

Manage, optimize, and troubleshoot the OpenClaw memory system — MEMORY.md curation, daily logs (memory/YYYY-MM-DD.md), memory_search tuning, compaction survi...

Registry SourceRecently Updated
General

ImageRouter

Generate AI images with any model using ImageRouter API (requires API key).

Registry SourceRecently Updated
2.6K2dawe35