Add CIFS backup in cli

Fredware

Active Member
Jun 7, 2019
10
0
41
55
Hello,
Simply:
Code:
root@pve:~# pvesm add cifs synology --server "192.168.10.10" --share "NetBackup/" --username $USER --password "$PASSWORD" --smbversion "3.0" --content "backup"
create storage failed: error with cfs lock 'file-storage_cfg': storage 'synology' is not online

I tried:
Code:
root@pve:~#pvesm cifsscan 192.168.10.10 --username $USER --password "$PASSWORD"
root@pve:~#

I tried too:
- create user and password proxmox:proxmox to not have specials characters, same problem.
- with smbversion 2.0, 2.1, 3.0

By WebUI it's works, but I needed to cli for ansible.

Thanks
 
Hi!

You could use your browser's web development tools to take a look at what command exactly is sent to the API when you do this in the WebUI and compare this to your pvesm add.
 
Good Idea! Thanks!

So I tried:
Code:
{"Données de formulaire":{"storage":"synology","server":"192.168.10.10","username":"$USER","password":"$PASSWORD","share":"NetBackup","nodes":"pve","maxfiles":"3","content":"$USER","domain":"","type":"cifs","disable":"0"},"Transmission de la requête":{"EDITOR_CONFIG":{"text":"storage=synology&server=192.168.10.10&username=$USER&password=$PASSWORD&share=NetBackup&nodes=pve&maxfiles=3&content=backup&domain=&type=cifs&disable=0","mode":"application/json"}}}

I don't see changes from the CLI.