]> git.proxmox.com Git - proxmox-backup.git/commit - proxmox-restore-daemon/src/main.rs
restore daemon: create /run/proxmox-backup on startup
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 19:03:13 +0000 (21:03 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Sat, 3 Jul 2021 19:43:07 +0000 (21:43 +0200)
commit33d7292f29bedfd7570bebcef2a5d6943ebe8cbb
treeaf4c366e7982e1329f650af58a63f333a4323e8e
parentf4d371d2d2c5d79352e9681b5d942627e26c6fd4
restore daemon: create /run/proxmox-backup on startup

fixes file restore again.

The new Memcom tracking file lives in `/run/proxmox-backup` and is
always created on REST interaction, as CachedUserInfo uses it to
efficiently track config changes, and such a cache is used in each
REST handle_request.

Further, the Memcom infra expects the base run PBS dir to exists
already, which is an OK assumption to have, but in the file-restore
daemon we have a significantly more minimal environment, and the run
dir was simply not required there, even /run isn't a tmpfs yet.

Fixes fda19dcc6f4 ("fix CachedUserInfo by using a shared memory version counter")
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/proxmox-restore-daemon.rs