ralph-session-backup by arisng/github-copilot-fc
npx skills add https://github.com/arisng/github-copilot-fc --skill ralph-session-backup此技能提供了一个脚本来备份 Ralph 会话,并支持版本控制。每个会话维护多个带时间戳的备份,这些备份按特定于仓库的文件夹组织,以避免不同仓库之间的命名冲突。
要备份特定会话:
.ralph-sessions 的仓库根目录python3 <skill_directory>/scripts/backup_session.py <session_name>重要提示:脚本路径必须相对于当前技能目录位置进行解析。这需要在执行脚本之前首先确定此技能的安装位置(例如,在个人 Copilot 文件夹中,如 .claude、.copilot 等)。
该脚本创建一个带版本控制的备份结构,并自动压缩旧备份以优化存储:
SwarmSessions/
└── <repo_name>/
└── <session_name>/ # 会话文件夹 (YYMMDD-HHMMSS)
├── backup_YYMMDD-HHMMSS/ # 最新备份(未压缩目录)
├── backup_YYMMDD-HHMMSS.zip # 旧备份(自动压缩)
├── latest-win/ # Windows 连接点 -> 最新备份目录
└── latest-linux/ # Linux 符号链接 -> 最新备份目录
自动压缩逻辑:创建新备份时,脚本会自动压缩会话文件夹中任何现有的未压缩备份目录。只有最新的备份保持为未压缩目录,以便通过 latest 链接轻松访问。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
python3 backup_session.py <session_name> - 创建新的版本化备份python3 backup_session.py <session_name> --list - 列出所有现有版本python3 backup_session.py <session_name> --cleanup=N - 仅保留最后 N 个版本(默认值:5)python3 backup_session.py <session_name> --get-latest-path - 打印最新会话版本的路径(平台特定)要从特定版本恢复:
SwarmSessions/<repo_name>/<session_name>/backup_YYMMDD-HHMMSS 文件夹复制回 .ralph-sessions/<session_name>latest-win/(Windows)或 latest-linux/(Linux/WSL)该脚本创建特定于平台的链接变体:
latest-win/ : Windows 连接点(透明的目录链接,无需管理员权限)latest-linux/ : Linux 符号链接(适用于 WSL 和原生 Linux)无论当前平台如何,都会创建这两个链接,并指向最新的备份。如果链接创建失败,会显示警告,但备份仍会成功。
.ralph-sessions 中每周安装次数
1
仓库
GitHub 星标数
2
首次出现
1 天前
安全审计
安装于
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
This skill provides a script to backup Ralph sessions with versioning support. Each session maintains multiple timestamped backups, organized under repository-specific folders to avoid naming conflicts between different repositories.
To backup a specific session:
python3 <skill_directory>/scripts/backup_session.py <session_name>Important : The script path must be resolved relative to the current skill directory location. This requires first determining where this skill is installed (e.g., in personal Copilot folders like .claude, .copilot, etc.) before executing the script.
The script creates a versioned backup structure and auto-zips older backups to optimize storage:
SwarmSessions/
└── <repo_name>/
└── <session_name>/ # Session folder (YYMMDD-HHMMSS)
├── backup_YYMMDD-HHMMSS/ # Latest backup (unzipped directory)
├── backup_YYMMDD-HHMMSS.zip # Older backups (auto-zipped)
├── latest-win/ # Windows junction point -> latest backup directory
└── latest-linux/ # Linux symlink -> latest backup directory
Auto-Zipping Logic : When a new backup is created, the script automatically zips any existing unzipped backup directories in the session folder. Only the most recent backup remains as an unzipped directory for easy access via the latest links.
python3 backup_session.py <session_name> - Create a new versioned backuppython3 backup_session.py <session_name> --list - List all existing versionspython3 backup_session.py <session_name> --cleanup=N - Keep only the last N versions (default: 5)python3 backup_session.py <session_name> --get-latest-path - Print the path to the latest session version (platform-specific)To restore from a specific version:
SwarmSessions/<repo_name>/<session_name>/backup_YYMMDD-HHMMSS folder back to .ralph-sessions/<session_name>latest-win/ (Windows) or latest-linux/ (Linux/WSL) for the most recent backupThe script creates platform-specific link variants:
latest-win/ : Windows junction point (transparent directory link, no admin rights needed)latest-linux/ : Linux symlink (works in WSL and native Linux)Both links point to the most recent backup and are created regardless of the current platform. If link creation fails, a warning is shown but the backup still succeeds.
.ralph-sessionsWeekly Installs
1
Repository
GitHub Stars
2
First Seen
1 day ago
Security Audits
Gen Agent Trust HubWarnSocketFailSnykPass
Installed on
zencoder1
amp1
cline1
openclaw1
opencode1
cursor1
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装