]> git.proxmox.com Git - proxmox-backup.git/commit
config: add JobState helper
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 13 Aug 2020 08:29:15 +0000 (10:29 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 13 Aug 2020 09:36:10 +0000 (11:36 +0200)
commite6263c2662c16796cecec71e1afc9d1718b62bfc
treee7bb526ae4ff7da50897d44fed9da913a598d6a8
parentae197dda23b8fac07dfcfc56307936d96c11aaec
config: add JobState helper

this is intended to be a generic helper to (de)serialize job states
(e.g., sync, verify, and so on)

writes a json file into '/var/lib/proxmox-backup/jobstates/TYPE-ID.json'

the api creates the directory with the correct permissions, like
the rrd directory

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/bin/proxmox-backup-api.rs
src/config.rs
src/config/jobstate.rs [new file with mode: 0644]