[SOLVED] LXC Restore: Which mountpoints will get deleted?

dekiesel

Member
Apr 30, 2023
63
6
13
Hi,

II'd like to restore the following LXC:

Code:
mp0: wdreddata:vm-129-disk-0,mp=/root/app/persistant-data/immich/uploads,backup=1,mountoptions=noatime,size=88G
mp1: wdreddata:vm-129-disk-1,mp=/mnt/htpc,mountoptions=noatime,size=180G
mp8: /mnt/samba/sambaserver/storage1/,mp=/mnt/samba/sambaserver/storage1/,mountoptions=noatime,backup=0,ro=1
mp9: /mnt/samba/sambaserver/storage2/,mp=/mnt/samba/sambaserver/storage2/,mountoptions=noatime,backup=0,ro=1


As I understand the documention mp8 and mp9 will not get deleted because they are bind mounts of the host, right?

I want to restore mp0 from my backup, but what will happen to mp1? mp1 is not backed up, will it get deleted anyway?

Additional question:

According to the GUI mp1 (see screenshot) is not part of the backup, but the config is missing backup=0, did I configure something incorrectly?


1736758791285.png
 
  • Like
Reactions: Johannes S
Thanks! Any advice on how I easily can set up a similar container? Or is the only way to do everything by hand?
 
Thanks! Any advice on how I easily can set up a similar container? Or is the only way to do everything by hand?

Well..., to simulate a "thing" probably it is a good idea to create the new experimental instance in the same way as the original one was crafted.

The only other way would be to clone the original. But as we want to learn the difference - and possibly harming - behavior of those mountpoints I would really hesitate to do so. (Are references duplicated? Pointing the very same single data? Be careful...)

Only by creating a test-container manually you know exactly what's inside and that is has no affect to others.

Sorry to be vague, as already said I am not a heavy container user.
 
I finally got around to test this.

mp1 does get **deleted**/wiped. Which is a design decision I just don't understand.

When I then tried the restore it failed because it tried to restore to a different disk than the backups were taken from. Instead of giving me a "try again" button, proxmox deleted the container, even the config.

All in all this is a very bad experience.