Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jF3Vd-00050y-Tm for pgsql-general@arkaria.postgresql.org; Thu, 19 Mar 2020 22:19:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jF3Vc-000108-NQ for pgsql-general@arkaria.postgresql.org; Thu, 19 Mar 2020 22:19:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jF3Vc-000100-9K for pgsql-general@lists.postgresql.org; Thu, 19 Mar 2020 22:19:24 +0000 Received: from mail3.conversis.de ([213.203.208.210]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jF3VZ-0000wC-9p for pgsql-general@lists.postgresql.org; Thu, 19 Mar 2020 22:19:23 +0000 Received: from localhost.localdomain (ip-88-152-45-172.hsi03.unitymediagroup.de [88.152.45.172]) by mail3.conversis.de (Postfix) with ESMTPSA id 75452E1BC7 for ; Thu, 19 Mar 2020 23:19:19 +0100 (CET) To: pgsql-general@lists.postgresql.org From: Dennis Jacobfeuerborn Subject: How does pg_basebackup manage to create a snapshot of the filesystem? Message-ID: <0cff1bac-7ed2-df11-2d28-9bdd7b102dea@conversis.de> Date: Thu, 19 Mar 2020 23:19:18 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, I'm currently trying to understand how backups work. In the documentation in section "25.2. File System Level Backup" it says that filesystem level backups can only be made when the database if offline yet pg_basebackup seems to do just that but works while the database is online. Am I misunderstanding something here or does pg_basebackup use some particular features of Postgres to accomplish this? Regards, Dennis