ajshedivy/ibmi-agent-skills/backup-and-recovery
Claude Code and agent skill by ajshedivy/ibmi-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Query and analyze IBM i backup and recovery resources including save files, save file contents, media libraries, and tape cartridges via SQL services. Use when user asks about: (1) save file history or contents, (2) finding where an object was saved, (3) media library device status, (4) tape cartridge inventory, (5) backup verification, or (6) replacing DSPSAVF, WRKTAP, WRKMLBRM commands.
Install
npx vskill@latest install ajshedivy/ibmi-agent-skills/backup-and-recoverySKILL.md
The same SKILL.md was published earlier as ajshedivy/ibmi-agent-skills/backup-and-recovery.
IBM i Backup & Recovery
Query and analyze backup resources on IBM i using SQL services from QSYS2.
Available Tools
The ibmi CLI is the primary tool for executing backup queries. Set SKILL_DIR to this skill's installed location (the directory containing this SKILL.md file):
Service Selection Guide
Save File Analysis
- QSYS2.SAVE_FILE_INFO — Save file metadata (timestamps, object counts, commands used)
- QSYS2.SAVE_FILE_OBJECTS (view) — Broad search across all save files for specific objects
- QSYS2.SAVE_FILE_OBJECTS (table function) — Targeted inspection of a specific save file
Media Hardware
- QSYS2.MEDIA_LIBRARY_INFO — Tape library device inventory and status
- QSYS2.TAPE_CARTRIDGE_INFO — Tape cartridge inventory, status, and location
Key Capabilities
Backup Verification
- List save files with timestamps, object counts, and save commands
- Filter by save file library or source library
- Verify backup completeness and timing
Object Recovery
- Search all save files for a specific object by name
- Find the most recent save containing a given object
- Inspect individual save file contents with type filtering
Media Management
- Check tape library device status (varied on/off)
- Inventory tape cartridges by status, location, or volume ID
- Verify media hardware availability before backup operations
Common Use Cases
1. Backup Audit
List recent save files to verify backup schedule compliance
2. Object Recovery Search
Find which save file contains a specific object for restore
3. Save File Inspection
List all objects in a specific save file before restoring
4. Tape Drive Status
Check tape library devices before starting a backup job
5. Cartridge Inventory
List available tape cartridges and their current status
CL Command Migration
| CL Command | SQL Service | |
|---|---|---|
| DSPSAVF | SAVE_FILE_OBJECTS (table function) | |
| WRKTAP | TAPE_CARTRIDGE_INFO | |
| WRKMLBRM | MEDIA_LIBRARY_INFO |
Quick Examples
List recent save files
Always scope by SAVE_FILE_LIBRARY — the unfiltered view scans every save file on the system and will time out.
Find a saved object
Narrow to a specific save file library to avoid a full-system scan.
Check tape drive status
Pre-built Tools
The tools/backup-and-recovery.yaml file provides 5 ready-to-use tools:
| Tool | Description | |
|---|---|---|
get_save_file_info | Save file metadata with timestamps and object counts | |
get_save_file_objects_view | Broad search across all save files | |
get_save_file_objects_detail | Targeted save file content inspection | |
get_media_library_info | Tape library device inventory | |
get_tape_cartridge_info | Tape cartridge status and location |
Reference Documentation
- Backup Services Catalog — All BACKUP AND RECOVERY services
- Backup Examples — Working SQL examples
- IBM i Services - Backup — IBM documentation
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/backup-and-recovery/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ajshedivy/ibmi-agent-skills/backup-and-recovery)