proxmox-backup/src/api2/config
Gabriel Goller 5a52d1f06c reuse-datastore: avoid creating another prune job
If a datastore with a prune job is removed, the prune job is preserverd
as it is stored in /etc/proxmox-backup/prune.cfg. We also create a
default prune job for every datastore – this means that when reusing a
datastore that previously existed, you end up with duplicate prune jobs.
To avoid this we check if a prune job already exists, and when it does,
we refrain from creating the default one. (We also check if specific
keep-options have been added, if yes, then we create the job
nevertheless.)

Reported-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Signed-off-by: Gabriel Goller <g.goller@proxmox.com>
2024-11-26 11:24:46 +01:00
..
access api: access: add routes for managing AD realms 2024-04-24 21:06:14 +02:00
metrics replace get(key).is_some() with contains_key() 2024-06-28 09:20:56 +02:00
notifications api: admin: avoid duplicate name for list sync jobs api method 2024-11-21 10:14:53 +01:00
acme.rs backup: remove lazy_static dependency 2024-08-14 12:08:01 +02:00
changer.rs replace get(key).is_some() with contains_key() 2024-06-28 09:20:56 +02:00
datastore.rs reuse-datastore: avoid creating another prune job 2024-11-26 11:24:46 +01:00
drive.rs replace get(key).is_some() with contains_key() 2024-06-28 09:20:56 +02:00
media_pool.rs don't call contains_key() before remove() 2024-06-28 09:33:23 +02:00
mod.rs api: add endpoints for querying/testing notification targets 2024-04-23 23:14:46 +02:00
prune.rs reuse-datastore: avoid creating another prune job 2024-11-26 11:24:46 +01:00
remote.rs don't call contains_key() before remove() 2024-06-28 09:33:23 +02:00
sync.rs sync config: forbid setting resync_corrupt for push jobs 2024-11-25 11:22:46 +01:00
tape_backup_job.rs replace get(key).is_some() with contains_key() 2024-06-28 09:20:56 +02:00
tape_encryption_keys.rs move pbs_config::tape_encryption_keys to pbs crate lib 2022-12-12 14:26:02 +01:00
traffic_control.rs don't call contains_key() before remove() 2024-06-28 09:33:23 +02:00
verify.rs replace get(key).is_some() with contains_key() 2024-06-28 09:20:56 +02:00