Add CIFS backup in cli

Fredware

Member
Jun 7, 2019
10
0
6
54
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!