feat: backup the original file before manage it by lazyssh (#49)

This commit is contained in:
Adem Baccara
2025-09-12 19:32:09 +01:00
committed by GitHub
parent b7fb586e73
commit e75b61e819
4 changed files with 44 additions and 4 deletions
@@ -23,10 +23,11 @@ import (
)
const (
MaxBackups = 10
TempSuffix = ".tmp"
BackupSuffix = "lazyssh.backup"
SSHConfigPerms = 0o600
MaxBackups = 10
TempSuffix = ".tmp"
BackupSuffix = "lazyssh.backup"
SSHConfigPerms = 0o600
OriginalBackupName = "config.original.backup"
)
// filterServers filters servers based on the query string.