From: Anderson A. Giacomolli Date: Tue, 10 Nov 2026 03:51:26 +0000 (-0300) Subject: Back up the daemon and restore its data X-Git-Url: http://git.giacomolli.uk/onechat/commitdiff_plain/6844f8c992ec4e276a3a0d93b544de0127eebbd2?hp=6844f8c992ec4e276a3a0d93b544de0127eebbd2 Back up the daemon and restore its data The backup command asks the running daemon for an archive. A flushed memory snapshot holds the write locks during the agent copy, and SQLite VACUUM INTO saves the WhatsApp session without raw database files. Compression runs after the write locks are released. Restore validates the archive in a staging directory before it installs the files. The token lock excludes a running daemon, and a nonempty destination fails without replacement of its data. ---