Storage and Backups
Wakezilla persists machine configuration and access history as JSON files. Client service configuration is stored separately in config.toml.
| File | Contents |
|---|---|
machines.json |
Machines, MAC and IP addresses, remote power settings, shutdown keys and verification state, inactivity periods, and port forwards |
access_history.json |
Accepted connection timestamps grouped by machine and local port |
config.toml |
Service settings and, on a paired client, security.client_shutdown_key |
Foreground processes
Section titled “Foreground processes”When you run wakezilla proxy-server without a generated system configuration, both files are relative to the directory from which Wakezilla starts.
./machines.json./access_history.jsonSet absolute locations when the working directory may change:
export WAKEZILLA__STORAGE__MACHINES_DB_PATH=/srv/wakezilla/machines.jsonexport WAKEZILLA__STORAGE__ACCESS_HISTORY_PATH=/srv/wakezilla/access_history.jsonSystem service data
Section titled “System service data”wakezilla setup writes absolute paths for service data:
| Platform | Data directory |
|---|---|
| Linux | /var/lib/wakezilla |
| macOS | /Library/Application Support/wakezilla |
| Windows | %ProgramData%\wakezilla |
Access-history retention
Section titled “Access-history retention”Wakezilla keeps up to 2000 accepted-connection timestamps per forwarded service by default. Set storage.max_access_records to a different number. A value of 0 disables new history records.
The proxy writes access history every 60 seconds and once more during graceful shutdown. A forced process termination can lose the most recent interval.
Back up
Section titled “Back up”- Stop the proxy or system service so files do not change during the copy.
- Copy
config.toml,machines.json, andaccess_history.jsonto the backup location. - Start the proxy again.
On Linux:
sudo wakezilla service stop --mode proxysudo cp -a /etc/wakezilla/config.toml /var/lib/wakezilla /path/to/backup/sudo wakezilla service start --mode proxyRestore
Section titled “Restore”- Stop the proxy.
- Restore the files to the paths declared by the configuration.
- Preserve ownership and permissions required by the service manager.
- Start the proxy and inspect its logs for parsing errors.
After restoring a client or proxy from different points in time, the stored keys may no longer match. Open the machine detail page, choose Reconfigure security if necessary, run the current command on the target, and wait for verification.
Uninstall behavior
Section titled “Uninstall behavior”wakezilla uninstall removes services, their protected executable copies, and setup-managed Windows Firewall rules. It intentionally leaves configuration, data, and logs in place. Remove those files separately only after taking any required backup.