File restore and symlinks

VictorSTS

Distinguished Member
Oct 7, 2019
1,120
631
158
Spain
Hello,

I have backup of a LXC container. When doing a file restore from PVE7.4 of a directory that contains symlinks, those symlinks are not included in the .zip file that is downloaded from the webUI. The symlinks are shown in the file browser of the webUI. Also, a full restore of that snapshot does restore the symlinks. That is, the symlinks are included in the backup, they just seem to not be included in the .zip file. Maybe PBS isn't using the "--symlinks" parameter when creating the .zip?

Should the symlinks be included in the .zip file?
Also, I tried to download then in .tar.zst format but the option to do so disappears as soon as I browse the backup files. How can I download a file/directory from the file restore browser?

Thanks!
 
Should the symlinks be included in the .zip file?
thats currently not implemented (we use our own zip compression code; and symlinks are not really specified in the original zip specification). you can open a feature request here: https://bugzilla.proxmox.com

as for
Also, I tried to download then in .tar.zst format but the option to do so disappears as soon as I browse the backup files. How can I download a file/directory from the file restore browser?
this is currently only implemented for pxar browsing on the pbs directly. i sent a patch for that last year to add it to pve but that seems to have been overlooked, maybe you can also open a feature request for that, so that we don't lose sight of it again :)
 
thats currently not implemented (we use our own zip compression code; and symlinks are not really specified in the original zip specification). you can open a feature request here: https://bugzilla.proxmox.com
Done: https://bugzilla.proxmox.com/show_bug.cgi?id=4995

this is currently only implemented for pxar browsing on the pbs directly. i sent a patch for that last year to add it to pve but that seems to have been overlooked, maybe you can also open a feature request for that, so that we don't lose sight of it again :)
Done: https://bugzilla.proxmox.com/show_bug.cgi?id=4996

Thanks!
 
Well, I didn't said it was solved, but checking the bug report 4995, "Improve file restore .zip format to include symlinks", seems to be solved with v4.0.19 of PBS [1]. That means that it should work when restoring from PBS. Doesn't mention it should work when restoring from PVE. In fact, checking the other bug 4996 "Improve file restore window on PVE to allow "download as"" it's still as "patch available", which hints that it may not be fixed when restoring from PVE.

[1] https://bugzilla.proxmox.com/show_bug.cgi?id=4995#c5