Add CIFS storage to subdir

His.Dudeness

Member
Mar 8, 2020
46
4
13
Hi,
I am trying to add a new cifs storage to a subdir inside an existing share. I'd like to use it for backups and maybe ISOs

The share looks like this \\server.domain.local\backup\proxmoxbackup

As the UI has no option for a subdir, I tried the following command:

pvesm add cifs ProxmoxBackup --server server.domain.local --share backup --username backupuser --password secretpassword --domain domain --subdir proxmoxbackup

...but I keep getting the following error:

400 Parameter verification failed.
subdir: invalid format - value does not look like a valid absolute path

Can anybody tell me what's the right syntax for mounting to a subdir ?

cheers
Michael
 
Hi!

Unfortunately, subdir is not a supported property for CIFS storages. If you provide an absolute path like /asdf you will get a more useful error message: Unknown option: subdir. Please check out the list of available properties for CIFS in our wiki.

Best,
Dominic
 
Last edited:
Hi Dominic,

thanks for your reply! :)

To bad – that would be a really nice feature, especially to keep the backup storages separated for different VM backup plans and retentions times. This would make it easier than creating a separate share for each storage

Would it be OK to mount the subfolders via mount / fstab and then add multiple storages as directory? Good idea? Bad idea? :)

Michael
 
Hi!

You could file a feature request (explaining why this is useful) on bugzilla.proxmox.com so that your idea does not get left behind :)

You could, for example, add your CIFS as storage to Proxmox VE which mounts it to /etc/pve and then add subdirectories of it as directory storages.

Best,
Dominic
 
  • Like
Reactions: His.Dudeness
Hi !

Sounds like a good compromise. :-)
Nevertheless, I have written a feature request. It's certainly not a matter of life and death, but maybe there are others who might find it useful.

Thanks for your help! :-)

cheers
Michael
 
  • Like
Reactions: mic4ael and Dominic
Nevertheless, I have written a feature request.
Thank you!

It would be great if you could mark the thread as resolved by editing the top post and adding a prefix to the title. This way others know what to expect :)
 
Hi !

Sounds like a good compromise. :)
Nevertheless, I have written a feature request. It's certainly not a matter of life and death, but maybe there are others who might find it useful.

Thanks for your help! :)

cheers
Michael


I've been looking for a way to do this as well. Thanks for posting the feature request :)

To anyone else that comes across this thread, here's the link to it... https://bugzilla.proxmox.com/show_bug.cgi?id=2641
 
  • Like
Reactions: mic4ael