Skip to main content
Glama

backup_restore

Create timestamped backups, restore files, and manage backup lifecycle with metadata tracking and automated cleanup for data protection.

Instructions

💾 Enhanced backup management - Timestamped backup tracking with metadata, restore capability, and intelligent cleanup. Extends existing backup patterns with enterprise-grade management.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
backup_idNo
cleanup_optionsNo
file_pathNo
metadataNo

Implementation Reference

  • Top-level handler method for the backup_restore tool. Delegates to FileModificationManager.orchestrateOperation with operation type 'backup_restore'.
    async handleBackupRestore(args) { return await this.fileManager.orchestrateOperation('backup_restore', args); }
  • Input schema for backup_restore tool defining parameters like action (create/restore/list/cleanup), file_path, backup_id, metadata, and cleanup_options.
    schema: { type: 'object', properties: { action: { type: 'string', enum: ['create', 'restore', 'list', 'cleanup'] }, file_path: { type: 'string' }, backup_id: { type: 'string' }, metadata: { type: 'object', properties: { description: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } } } }, cleanup_options: { type: 'object', properties: { max_age_days: { type: 'number', default: 30 }, max_count_per_file: { type: 'number', default: 10 }, dry_run: { type: 'boolean', default: false } } } }, required: ['action']
  • Registration of backup_restore tool in coreToolDefinitions array of SmartAliasResolver, linking name to handler 'handleBackupRestore' and including schema.
    name: 'backup_restore', description: '💾 Enhanced backup management - Timestamped backup tracking with metadata, restore capability, and intelligent cleanup. Extends existing backup patterns with enterprise-grade management.', handler: 'handleBackupRestore', schema: { type: 'object', properties: { action: { type: 'string', enum: ['create', 'restore', 'list', 'cleanup'] }, file_path: { type: 'string' }, backup_id: { type: 'string' }, metadata: { type: 'object', properties: { description: { type: 'string' }, tags: { type: 'array', items: { type: 'string' } } } }, cleanup_options: { type: 'object', properties: { max_age_days: { type: 'number', default: 30 }, max_count_per_file: { type: 'number', default: 10 }, dry_run: { type: 'boolean', default: false } } } }, required: ['action'] }
  • In FileModificationManager.orchestrateOperation switch statement, handles 'backup_restore' by invoking router.performBackupRestore with parameters.
    case 'backup_restore': result = await this.router.performBackupRestore( params.action, params.file_path, params.backup_id, params.metadata, params.cleanup_options );
  • Core implementation method in MultiAIRouter for performing backup/restore actions (currently a placeholder returning success). Called by orchestrateOperation.
    async performBackupRestore(action, filePath, backupId, metadata, cleanupOptions) { // Placeholder implementation return { success: true, action };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Platano78/Smart-AI-Bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server