backup_critical_files
Securely back up essential system configuration files remotely from servers. Specify hostname, username, and files to safeguard critical data like /etc/passwd, /etc/shadow, and /etc/fstab.
Instructions
备份重要系统配置文件
Input Schema
Name | Required | Description | Default |
---|---|---|---|
backup_dir | No | /tmp/backup | |
files | No | ||
hostname | Yes | ||
password | No | ||
port | No | ||
timeout | No | ||
username | Yes |
Input Schema (JSON Schema)
{
"properties": {
"backup_dir": {
"default": "/tmp/backup",
"title": "Backup Dir",
"type": "string"
},
"files": {
"default": [
"/etc/passwd",
"/etc/shadow",
"/etc/fstab",
"/etc/hosts"
],
"items": {
"type": "string"
},
"title": "Files",
"type": "array"
},
"hostname": {
"title": "Hostname",
"type": "string"
},
"password": {
"default": "",
"title": "Password",
"type": "string"
},
"port": {
"default": 22,
"title": "Port",
"type": "integer"
},
"timeout": {
"default": 60,
"title": "Timeout",
"type": "integer"
},
"username": {
"title": "Username",
"type": "string"
}
},
"required": [
"hostname",
"username"
],
"title": "backup_critical_filesArguments",
"type": "object"
}