[GH-ISSUE #167] How to create a datastore with keep-monthly option? #89

Closed
opened 2026-02-27 15:46:22 +03:00 by kerem · 1 comment
Owner

Originally created by @Leetcore on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/167

How can i add the prune options to a new datastore?

proxmoxer.config.datastore.create(name="datastore-name", path="/test")

NOT the correct way:

proxmoxer.config.datastore.create(name="datastore-name", path="/test", keep-yearly=1)

It's not possible to use this variables "keep-monthly", "keep-yearly", etc. Any ideas?

Originally created by @Leetcore on GitHub (May 31, 2024). Original GitHub issue: https://github.com/proxmoxer/proxmoxer/issues/167 How can i add the prune options to a new datastore? ``` proxmoxer.config.datastore.create(name="datastore-name", path="/test") ``` NOT the correct way: ``` proxmoxer.config.datastore.create(name="datastore-name", path="/test", keep-yearly=1) ``` It's not possible to use this variables "keep-monthly", "keep-yearly", etc. Any ideas?
kerem 2026-02-27 15:46:22 +03:00
Author
Owner

@jhollowe commented on GitHub (May 31, 2024):

Please see my comment on https://github.com/proxmoxer/proxmoxer/issues/159#issuecomment-1981198470 for how to do with with dictionary unpacking

<!-- gh-comment-id:2142187806 --> @jhollowe commented on GitHub (May 31, 2024): Please see my comment on https://github.com/proxmoxer/proxmoxer/issues/159#issuecomment-1981198470 for how to do with with dictionary unpacking
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/proxmoxer#89
No description provided.