[SOLVED] edit pct.conf inside of encrypted pbs snapshot?

nakaori

New Member
Aug 6, 2020
17
1
3
37
Hey,

I have a problem with a faulty pct.conf and need to edit it in a snapshot which resides on a proxmox backup server. The snapshot itself is encrypted so I cannot directly access the file from the server. I tried the proxmox-backup-client mount command but it doesn't let me mount the whole snapshot with the config file.

Any way to edit this file?
 
no, backup snapshots are immutable (except for notes and other metadata). you can override almost everything in the config when doing a restore though, pct restore NEWID BACKUP --option value
 
no, backup snapshots are immutable (except for notes and other metadata). you can override almost everything in the config when doing a restore though, pct restore NEWID BACKUP --option value
thanks for your reply, fabian.

I am not sure how to do this with an encrypted snapshot from pbs. Don't i have to use proxmox-backup-client restore for this? I cannot use --options in the client.


My issue is that I am getting:

Code:
cannot enable quota control for bind mounted subvolumes
Error: error extracting archive - error at entry "": failed to apply directory metadata: failed to apply acls: Error while restoring ACL - ACL invalid
TASK ERROR: unable to restore CT 122 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- /usr/bin/proxmox-backup-client restore '--crypt-mode=encrypt' '--keyfd=14' ct/122/2021-03-31T00:15:48Z root.pxar /var/lib/lxc/122/rootfs --allow-existing-dirs --repository haruka@pbs@backup:Haruka' failed: exit code 255

I am suspecting that the quota option in my pct.conf is causing this.

rootfs: KANA_ZFS:subvol-122-disk-0,mountoptions=noatime,quota=1,size=50G
 
Last edited:
no, you use pct restore to restore it. see the pct man page for syntax/examples.
 
I really cannot get this to restore properly.

I tried

pct restore 122 backup:backup/ct/122/2021-03-31T00:15:48Z --storage KANA_ZFS --rootfs KANA_ZFS:mountoptions=noatime,quota=0,size=50

400 Parameter verification failed. rootfs: invalid format - format error rootfs.volume: property is missing and it is not optional rootfs.KANA_ZFS:mountoptions: property is not defined in schema and the schema does not allow additional properties


edit: nvm. I think I got it.

->
pct restore 122 backup:backup/ct/122/2021-03-31T00:15:48Z --storage KANA_ZFS --rootfs volume=KANA_ZFS:mountoptions=noatime,quota=0,size=50
 
Last edited:
Code:
pct restore 122 backup:backup/ct/122/2021-03-31T00:15:48Z --storage KANA_ZFS --rootfs  KANA_ZFS:50,mountoptions=noatime,quota=0
 
Code:
pct restore 122 backup:backup/ct/122/2021-03-31T00:15:48Z --storage KANA_ZFS --rootfs  KANA_ZFS:50,mountoptions=noatime,quota=0
Thank you for your help, kind Sir.

It starts restoring the backup but sadly I am getting the same error:

Error: error extracting archive - error at entry "": failed to apply directory metadata: failed to apply acls: Error while restoring ACL - ACL invalid unable to restore CT 122 - command '/usr/bin/proxmox-backup-client restore '--crypt-mode=encrypt' '--keyfd=8' ct/122/2021-03-31T00:15:48Z root.pxar /var/lib/lxc/122/rootfs --allow-existing-dirs --repository haruka@pbs@backup:Haruka' failed: exit code 255

I'm lost.
 
There's an updated proxmox-backup-client package (version 1.0.13-1) on pvetest since Friday evening and now also pve-no-subscription - it has improved handling of ACL entries on restore and create can you try with that one?
 
Last edited:

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!