What is the best way to replicate an lxc container in another proxmox?

csm310599

New Member
Jun 29, 2022
11
1
3
Hi folks, I need to replicate a lxc container that I have in a proxmox server on another new one but i don't really know how to do it because i'm new to this.
I want to follow best practices.


This is the output of df -h (only lxc info)


Code:
[CODE=nginx]sdb                               LVM2_member       YHDPXm-orcf-HsvN-pI8H-e3UR-yoBC-km5SVE             
├─R51_3--17-vm--1010206--disk--0  ext4              1cd2b821-3c01-4a43-b3ee-b0b143ebe741               
├─R51_3--17-vm--1010200--disk--0  ext4              23e9df0f-16b8-46ab-acbb-eeaa3807f75c               
├─R51_3--17-vm--1010113--disk--1                                                                       
├─R51_3--17-vm--10108--disk--0    ext4              36c359bc-bbda-4d7d-a78f-fa1e9977d910               
├─R51_3--17-vm--1010113--disk--2                                                                       
├─R51_3--17-vm--1010105--disk--0  ext4              54f904ef-b713-416f-b3d2-c0867ccf8baa               
├─R51_3--17-vm--1010104--disk--0  ext4              ff00c204-a14d-4131-a89c-a3199ba3ac30               
├─R51_3--17-vm--1010113--disk--0                                                                       
├─R51_3--17-vm--1011100--disk--0  ext4              15ffa77f-e3b5-4976-8562-95096b1184bf               
├─R51_3--17-vm--1010208--disk--0  ext4              9f7c500a-2a25-40c6-a750-fe71bc9c89d6               
├─R51_3--17-vm--1010201--disk--0  ext4              01acac48-f876-48e6-bec8-67bc1330120d               
├─R51_3--17-vm--1010100--disk--0  ext4              4e3afdf5-a134-4427-ac19-4111cefc9c88               
├─R51_3--17-vm--10110100--disk--0 ext4              8be06a71-403f-40c8-87e9-9ba12a87247e               
├─R51_3--17-vm--1010202--disk--0  ext4              b31989e1-c0a3-4d47-a34f-eaad1cee9fe1               
├─R51_3--17-vm--1011101--disk--0  ext4              d1a67aa5-2856-450c-90dd-d9e755691d94               
├─R51_3--17-vm--1010204--disk--0  ext4              137ec7dd-5e9e-4101-be12-a5d7430af40f               
├─R51_3--17-vm--1010203--disk--0  ext4              c56b7af9-45b7-4e02-9988-086e7b953cf4               
├─R51_3--17-vm--1010205--disk--0  ext4              7e88d57b-ba1e-477c-b76d-da20d962413c               
├─R51_3--17-vm--10122--disk--0    ext4              2104ba48-11ed-423f-9826-35be6cfa904e               
├─R51_3--17-vm--101110--disk--0   ext4              a9962502-da09-461c-b2a6-10d17cbb7684               
├─R51_3--17-vm--1010012--disk--0                                                                       
├─R51_3--17-vm--1010012--disk--1                                                                       
├─R51_3--17-vm--1010114--disk--0                                                                       
├─R51_3--17-vm--1010106--disk--0  ext4              90f031dd-9383-4bb8-988c-872654194fed               
├─R51_3--17-vm--1010207--disk--0  ext4              7186363c-a60d-42f0-9214-93545270d0e3               
└─R51_3--17-bk_group--1
[/CODE]


I don't even know if it is approved to take a snapshot of an lxc or if it is better to make a clone.
any suggestions are welcome :)
 
If you just want to move that LXC you can do a migration in case both nodes are clustered. If they aren't clustered you could create an Vzdump backup, copy that backup to the new server (or store that backup on a NAS share that both server have access to) and restore that backup on the other server.
 
Last edited:
If you just want to move that LXC you can do a migration in case both nodes are clustered. If they aren't clustered you could create an Vzdump backup, copy that backup to the new server (or store that backup on a NAS share that both server have acdess to) and restore that backup on the other server.
Oh thanks for the info !! but...what is vzdump used for? and how can I do this through command line interface?
 

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!