rename flag
This commit is contained in:
@ -141,7 +141,7 @@ def main():
|
||||
parser.add_argument('--password', help='SSH password')
|
||||
parser.add_argument('--key-file', help='SSH private key file path')
|
||||
parser.add_argument('--port', type=int, default=22, help='SSH port (default: 22)')
|
||||
parser.add_argument('--output-dir', default='/tmp', help='Output directory for command output files (default: /tmp)')
|
||||
parser.add_argument('--git-repo', default='/tmp', help='Git repository directory for command output files (default: /tmp)')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@ -219,7 +219,7 @@ def main():
|
||||
# Connect and backup
|
||||
if backup.connect():
|
||||
try:
|
||||
backup_info = backup.backup_commands(commands, args.output_dir)
|
||||
backup_info = backup.backup_commands(commands, args.git_repo)
|
||||
print(f"Backup completed for {hostname}")
|
||||
print(f"Summary: {sum(1 for cmd in backup_info['commands'].values() if cmd['success'])}/{len(commands)} commands successful")
|
||||
success_count += 1
|
||||
|
Reference in New Issue
Block a user