From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 9CA8BF37A for ; Fri, 29 Sep 2023 10:24:59 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 758471DBF5 for ; Fri, 29 Sep 2023 10:24:29 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Fri, 29 Sep 2023 10:24:27 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id A7C83445DC; Fri, 29 Sep 2023 10:24:27 +0200 (CEST) Message-ID: <54aa55a8-98f9-459d-b2fa-48ec790fd443@proxmox.com> Date: Fri, 29 Sep 2023 10:24:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Proxmox VE user list , "sebastian@debianfan.de" References: Content-Language: de-AT, en-US From: Lukas Wagner In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-SPAM-LEVEL: Spam detection results: 0 AWL -0.031 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record URIBL_BLOCKED 0.001 ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [proxmox.com] Subject: Re: [PVE-User] Backup of all Containers and KVM X-BeenThere: pve-user@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Sep 2023 08:24:59 -0000 On 9/29/23 09:53, sebastian@debianfan.de wrote: > Hi, > > if i want to get a full backup - can i copy the 100,101... folders complete to the backup server to get the data for an emergency restore later? > > Or is it required to use the internal backup function to get Backup files from containers and KVM and copy the dump-directory to the backup server? > I'd recommend using PVE's backup function, it includes everything needed to fully restore the VM/CT. If you need to automate that from a script, you can use the `vzdump` command (check `man vzdump` or [1] for instructions). You can then copy the backup files from the dump directory. You could also add the backup server as a storage (NFS or SMB) [2], then you can backup to the server directly, without having to copy the backup archives. The '100, 101' folders - by which I think you mean the directories in /etc/pve/{qemu,lxc} only contain the configuration files for the VM/CT, but not the disk image. Of course, you can back them up manually and then dump the disk image as well, but like I said, unless you have a very good reason against PVE's native backup system (vzdump), I'd recommend using that. It might also be worth checking out Proxmox Backup Server, which has the additional benefit of offering deduplication, encryption, live-restore and much more. [1] https://pve.proxmox.com/pve-docs/vzdump.1.html [2] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_storage -- - Lukas