I used this helper script to create a LXC for PBS.
https://helper-scripts.com/scripts?id=Proxmox+Backup+Server
I wanted to write my backups to my NAS so I used this guide to pass though my NAS drive to the LXC which is mounted to /mnt/nas_pbs
https://github.com/JamesTurland/JimsGarage/tree/main/LXC/NAS
I can see and write to the NAS drive in the PBS Shell, I have also added it as a data store and the .chunks and .locks were created.
I then connected PBS to my PVE and i can see it as data store.
when i go to a Container and click on backup it errors and fails. below is the error
I can not get it to back up any container where am i going wrong?
here is the LXC config.
https://helper-scripts.com/scripts?id=Proxmox+Backup+Server
I wanted to write my backups to my NAS so I used this guide to pass though my NAS drive to the LXC which is mounted to /mnt/nas_pbs
https://github.com/JamesTurland/JimsGarage/tree/main/LXC/NAS
I can see and write to the NAS drive in the PBS Shell, I have also added it as a data store and the .chunks and .locks were created.
I then connected PBS to my PVE and i can see it as data store.
when i go to a Container and click on backup it errors and fails. below is the error
INFO: starting new backup job: vzdump 101 --remove 0 --mode snapshot --storage backup --notes-template '{{guestname}}' --notification-mode auto --node pve
INFO: Starting Backup of VM 101 (lxc)
INFO: Backup started at 2024-05-30 12:13:23
INFO: status = running
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
INFO: CT Name: frigate
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('recordings') from backup (not a volume)
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: frigate
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('recordings') from backup (not a volume)
INFO: starting first sync /proc/3111/root/ to /var/tmp/vzdumptmp91735_101
INFO: first sync finished - transferred 4.06G bytes in 12s
INFO: suspending guest
INFO: starting final sync /proc/3111/root/ to /var/tmp/vzdumptmp91735_101
INFO: final sync finished - transferred 405.07K bytes in 2s
INFO: resuming guest
INFO: guest is online again after 2 seconds
INFO: creating Proxmox Backup Server archive 'ct/101/2024-05-30T11:13:23Z'
INFO: set max number of entries in memory for file-based backups to 1048576
INFO: run: /usr/bin/proxmox-backup-client backup --crypt-mode=none pct.conf:/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf root.pxar:/var/tmp/vzdumptmp91735_101 --include-dev /var/tmp/vzdumptmp91735_101/. --skip-lost-and-found --exclude=/tmp/?* --exclude=/var/tmp/?* --exclude=/var/run/?*.pid --backup-type ct --backup-id 101 --backup-time 1717067603 --entries-max 1048576 --repository root@pam@192.168.1.146:proxmox_backup
INFO: Starting backup: ct/101/2024-05-30T11:13:23Z
INFO: Client name: pve
INFO: Starting backup protocol: Thu May 30 12:13:37 2024
INFO: No previous manifest available.
INFO: Upload config file '/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf' to 'root@pam@192.168.1.146:8007:proxmox_backup' as pct.conf.blob
INFO: Error: fchmod "/mnt/nas_pbs/ct/101/2024-05-30T11:13:23Z/pct.conf.tmp_Unj1Xt" failed: EPERM: Operation not permitted
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
vm 101 - unable to parse value of 'usb0' - unknown setting 'usb0'
vm 101 - unable to parse value of 'usb1' - unknown setting 'usb1'
ERROR: Backup of VM 101 failed - command '/usr/bin/proxmox-backup-client backup '--crypt-mode=none' pct.conf:/var/tmp/vzdumptmp91735_101/etc/vzdump/pct.conf root.pxar:/var/tmp/vzdumptmp91735_101 --include-dev /var/tmp/vzdumptmp91735_101/. --skip-lost-and-found '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' --backup-type ct --backup-id 101 --backup-time 1717067603 --entries-max 1048576 --repository root@pam@192.168.1.146:proxmox_backup' failed: exit code 255
INFO: Failed at 2024-05-30 12:13:40
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors
I can not get it to back up any container where am i going wrong?
here is the LXC config.
GNU nano 7.2 /etc/pve/lxc/109.conf
#<div align='center'><a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'><img src='https%3A//raw.githubuserco>
#
# # PBS LXC
#
# <a href='https%3A//ko-fi.com/D1D7EP4GF'><img src='https%3A//img.shields.io/badge/☕-Buy me a coffee-blue' /></a>
# </div>
#
#http%3A//192.168.1.146%3A8007
arch: amd64
cores: 4
features: keyctl=1,nesting=1
hostname: proxbackserv
memory: 4096
mp0: /mnt/pve/nas_pbs/,mp=/mnt/nas_pbs
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:49:02:84,ip=dhcp,type=veth
onboot: 1
ostype: debian
rootfs: nvme-2tb:109/vm-109-disk-0.raw,size=10G
swap: 512
tags: proxmox-helper-scripts
unprivileged: 1