It says “comma-separated list of identifiers in the following format:
vtype=path
The following does not work:
nfs: truenas
export /mnt/tank/ISOs
path /mnt/pve/truenas
server 192.168.1.3
content iso
prune-backups keep-all=1
content-dirs iso=/Linux, iso=/Windows
It only shows the last directory in the comma separated list. I have tried every combination I can think of for comma separated lists and they either show nothing, or they only show the last one in the list.
It may be the space after the commas that’s causing in not to work. Typically comma-separated configs treat everything that’s not a comma as part of the argument, so it may be parsing that space as the beginning of the next key/value pair.
Like I said, I tried every combination of comma separated list I could think of or find. With quotes, with spaces before the comma, no spaces. It would be nice if they gave an example in the documentation but, that is why I am baffled and curious if I am misinterpreting what they are saying.
You can use comma separated ONLY for different VTYPES, that is, one for ISOs, one for backup files, one for VMs, etc. You are trying to set two different paths for ISOs, I don’t think that is possible
I think that is a horrible implementation if that is true. Why would they not allow multiple paths? What would stop the underlying code from seeing subfolders? At least allow the content type to be a directory.
Thank you for bringing that to my attention. They should clarify that better if that is the case.
well the answer is, how would Proxmox be able to tell what is a windows ISO vs a Linux ISO. To the software, an ISO is an ISO. Nothing is stopping you (I think) from manually creating sub directories in the ISO directory, once Proxmox creates it.
That’s not how it works. The content type is what it looks for, so if you put a subdirectory within the one it creates it will not see anything because it is looking for the content type of ISO. It cannot traverse subdirectories as it takes absolute paths.
That is why using the above you can point it to a “custom” directory or subfolder but not multiple.