94c60cf6cd5447721619287728c62aef9f6284b7
The path of a mount point does not need to start with a slash, for example a mount point configured with mp0: tank:subvol-999-disk-0,mp=data,size=1G,backup=1 gets mounted at /data in the container when it starts. The backup code however builds its paths by appending the path of the mount point to the root directory, which only works with a leading slash. So such a mount point broke all three backup modes, as it ended up as '/mnt/vzsnap0/.data' instead of '/mnt/vzsnap0/./data' in snapshot and stop mode, and as '/proc/<PID>/root//.data' in suspend mode. Add the missing leading slash when collecting the mount points for the backup, so that all paths built from it are correct. This also anchors the exclude pattern of such a mount point if it is excluded from the backup, which otherwise matched every file or directory with the same name in suspend mode. Signed-off-by: Michal Fox <me@dualfroz.com>
Description
My contributions to proxmox-git/pve-container: 3 commits
81 KiB
0 Stars
1 Watchers
0 Forks
Languages
Perl
99.2%
Makefile
0.8%