Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXOoa-0004h0-QO for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 13:47:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXOoY-0004l9-Um for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 13:47:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXOoY-0004l2-NI for pgsql-general@lists.postgresql.org; Fri, 16 Apr 2021 13:47:18 +0000 Received: from ms-10.1blu.de ([178.254.4.101]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXOoW-0007hp-9q for pgsql-general@lists.postgresql.org; Fri, 16 Apr 2021 13:47:18 +0000 Received: from [188.174.52.14] (helo=c720-r368166.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lXOoU-0000bH-NO; Fri, 16 Apr 2021 15:47:14 +0200 Received: from c720-r368166.fritz.box (localhost [127.0.0.1]) by c720-r368166.unixarea.de (8.16.1/8.14.9) with ESMTPS id 13GDlDVv002667 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 16 Apr 2021 15:47:13 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by c720-r368166.fritz.box (8.16.1/8.14.9/Submit) id 13GDlDuJ002666; Fri, 16 Apr 2021 15:47:13 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: c720-r368166.fritz.box: guru set sender to guru@unixarea.de using -f Date: Fri, 16 Apr 2021 15:47:13 +0200 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: Size of PostgreSQL backup ./. Sybase DUMP Message-ID: Reply-To: Matthias Apitz MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.52.14 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, We migrated a customer from Sybase ASE 15.7 to PostgreSQL 11.10, both on Linux server. With Sybase you create DUMP of only the database in question, not the server, and the gzip'ed DUMP files is around 2,6 GByte in size. For PostgreSQL we do backup with something like this cmd: pg_basebackup -U ${DBSUSER} -Ft -z -D ${BACKUPDIR}-${DATE}-${NUM} The resulting files # ls -lh backup-20210416-3 insgesamt 999M -rw------- 1 postgres postgres 999M 16. Apr 14:02 base.tar.gz -rw------- 1 postgres postgres 17K 16. Apr 14:02 pg_wal.tar.gz are less than 1 GByte. Any ideas about the cause of the difference? Can the backup somehow be checked without doing a recovery-restore in a new server? Thanks matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub ¡Con Cuba no te metas! «» Don't mess with Cuba! «» Leg Dich nicht mit Kuba an! http://www.cubadebate.cu/noticias/2020/12/25/en-video-con-cuba-no-te-metas/