vzdump + lxc + snap = fails

jaysee2607

New Member
Aug 1, 2023
3
0
1
Hello,

one of my LXC container use snap for certbot, and it fails the job backup with error:

Code:
309: 2025-06-26 12:55:06 INFO: starting first sync /proc/3654028/root/ to /var/lib/vz/tmp/vzdumptmp2181495_309/
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/certbot/4737") failed: Permission denied (13)
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/certbot/4730") failed: Permission denied (13)
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/core24/988") failed: Permission denied (13)
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/core24/1006") failed: Permission denied (13)
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/snapd/24718") failed: Permission denied (13)
309: 2025-06-26 12:55:09 ERROR: rsync: [sender] readlink_stat("/proc/3654028/root/snap/snapd/24505") failed: Permission denied (13)
309: 2025-06-26 12:55:31 ERROR: rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1338) [sender=3.2.7]
309: 2025-06-26 12:55:33 ERROR: Backup of VM 309 failed - command 'rsync --stats -h -X -A --numeric-ids -aH --delete --no-whole-file --sparse --one-file-system --relative '--exclude=/root/snap/*' '--exclude=/root/snap/**' '--exclude=/root/snap' '--exclude=/proc/\*' '--exclude=/tmp/?*' '--exclude=/var/tmp/?*' '--exclude=/var/run/?*.pid' /proc/3654028/root//./ /var/lib/vz/tmp/vzdumptmp2181495_309/' failed: exit code 23

As you can see i tried adding some exclude in the job.cfg, but without success :

Code:
    exclude-path /root/snap/*
    exclude-path /root/snap/**
    exclude-path /root/snap
    exclude-path /proc/\*

Any idea to achieve the thing ?

regards
 
Have you tried stop mode for creating the backup?

You could also try to modify the exclusion list to
Code:
exclude-path /snap
exclude-path /snap/*
exclude-path /snap/**
exclude-path /var/lib/snapd

Or use apt instead of snap for providing programs in a lxc.