git-backup
Create, restore, list, and verify backups of Git repositories to protect your code and project history from data loss or corruption.
Instructions
Comprehensive backup system for Git repositories. Supports backup creation, restoration, listing, and verification.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | The backup operation to perform | |
backupPath | No | Path for backup storage or backup file to restore/verify | |
checkIntegrity | No | Check backup integrity during verification (default: false) | |
compression | No | Enable compression (default: true) | |
format | No | Backup format (default: tar) | |
includeUntracked | No | Include untracked files in backup (default: false) | |
name | No | Backup name/identifier (for backup operation) | |
overwrite | No | Overwrite existing files during restore (default: false) | |
projectPath | Yes | Path to the Git repository (required) | |
sortBy | No | Sort criteria for listing backups (default: date) | |
targetPath | No | Target path for restoration (for restore operation) |
Input Schema (JSON Schema)
{
"properties": {
"action": {
"description": "The backup operation to perform",
"enum": [
"backup",
"restore",
"list",
"verify"
],
"type": "string"
},
"backupPath": {
"description": "Path for backup storage or backup file to restore/verify",
"type": "string"
},
"checkIntegrity": {
"description": "Check backup integrity during verification (default: false)",
"type": "boolean"
},
"compression": {
"description": "Enable compression (default: true)",
"type": "boolean"
},
"format": {
"description": "Backup format (default: tar)",
"enum": [
"tar",
"zip"
],
"type": "string"
},
"includeUntracked": {
"description": "Include untracked files in backup (default: false)",
"type": "boolean"
},
"name": {
"description": "Backup name/identifier (for backup operation)",
"type": "string"
},
"overwrite": {
"description": "Overwrite existing files during restore (default: false)",
"type": "boolean"
},
"projectPath": {
"description": "Path to the Git repository (required)",
"type": "string"
},
"sortBy": {
"description": "Sort criteria for listing backups (default: date)",
"enum": [
"name",
"date",
"size"
],
"type": "string"
},
"targetPath": {
"description": "Target path for restoration (for restore operation)",
"type": "string"
}
},
"required": [
"action",
"projectPath"
],
"type": "object"
}