]> git.proxmox.com Git - proxmox-backup.git/commit - src/api2/backup/environment.rs
backup: lock base snapshot and ensure existance on finish
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 11 Aug 2020 08:50:41 +0000 (10:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 11 Aug 2020 09:04:47 +0000 (11:04 +0200)
commit81f293513e742c6c4cc87db8a0fc47146bf9ed0a
treeb4c30b09d3da91d76695f6e8fbb4110a1cf861ab
parent8b5f72b176940d76fe320d14a030544a81b12055
backup: lock base snapshot and ensure existance on finish

To prevent forgetting the base snapshot of a running backup, and catch
the case when it still happens (e.g. via manual rm) to at least error
out instead of storing a potentially invalid backup.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/api2/backup.rs
src/api2/backup/environment.rs