Crea servizio watchdog configurabile

This commit is contained in:
2026-06-30 20:28:02 +02:00
parent 124cc370e5
commit 4dca5fbf95
17 changed files with 904 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
[service]
autostart = true
[tray]
autostart = true
[watch]
include_dirs = [
"%USERPROFILE%\\Desktop",
"%USERPROFILE%\\Documents",
"%USERPROFILE%\\Pictures",
"%USERPROFILE%\\Videos",
]
include_extensions = [
".jpg",
".jpeg",
".png",
".pdf",
".mp4",
".mov",
]
exclude_dirs = [
"%WINDIR%",
"%PROGRAMFILES%",
"%PROGRAMFILES(X86)%",
"%APPDATA%",
"%LOCALAPPDATA%",
"%TEMP%",
"$Recycle.Bin",
"System Volume Information",
"node_modules",
".git",
"__pycache__",
]
exclude_patterns = [
"~$*",
"*.tmp",
"*.bak",
"*.crdownload",
"*.part",
"*.lock",
]
[backup]
server_host = "backup-server"
remote_destination = "utente@backup-server:/backup/bak-rest/"
rsync_path = "rsync"
shutdown_on_success = true
shutdown_command = "shutdown /s /t 0"
[backup.server_check]
type = "tcp"
port = 22
interval_seconds = 300
timeout_seconds = 3
[stability]
min_age_seconds = 60
unchanged_check_interval_seconds = 5
unchanged_checks_required = 2
[storage]
change_registry = "%PROGRAMDATA%\\BakRest\\changes.sqlite"
logs_dir = "%PROGRAMDATA%\\BakRest\\logs"
status_file = "%PROGRAMDATA%\\BakRest\\status.json"