[SOLVED] Change location of backups on CIFS/SMB share

I don't think there is such a setting.

It is included in plugin.pm, but no one supports renaming the dump to something else to make it work correctly.
 
I do have some questions; here is the content of my storage file:

Code:
root@proxmox:~# cat /etc/pve/storage.cfg
dir: local
    path /var/lib/vz
    content backup,vztmpl,iso

lvmthin: local-lvm
    thinpool data
    vgname pve
    content rootdir,images

cifs: hetzner
    path /mnt/pve/hetzner
    server xxxx.xxxx
    share backup
    content iso,backup
    prune-backups keep-all=1
    username xxxxx

I want to use the hetzner backup for both iso's and backup purposes. How can I now change the directory locations of both?
 
I want to use the hetzner backup for both iso's and backup purposes. How can I now change the directory locations of both?
I guess like this:
Code:
cifs: hetzner
    path /mnt/pve/hetzner
    server xxxx.xxxx
    share backup
    content iso,backup
    content-dirs backup=custom/backup/dir iso=custom/iso/dir
    prune-backups keep-all=1
    username xxxxx
 
  • Like
Reactions: _gabriel
Thanks @gfngfn256 , when should I make this change? So let's say I have a fresh Proxmox instance. The first thing I do then is to add the storage location through the GUI. Then -after clicking save- I need to manually change the /etc/pve/storage.cfg file and restart Proxmox? Is that how it is supposed to be working?
 
Happy you got it sorted, maybe mark this thread as Solved.
At the top of the thread, choose the Edit thread button, then from the (no prefix) dropdown choose Solved.
 
  • Like
Reactions: rogierl