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 1lXP0B-000516-Gw for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 13:59:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXP0A-0001PK-9Q for pgsql-general@arkaria.postgresql.org; Fri, 16 Apr 2021 13:59:18 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXP09-0001PC-SX for pgsql-general@lists.postgresql.org; Fri, 16 Apr 2021 13:59:18 +0000 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lXP04-0004tD-Fn for pgsql-general@lists.postgresql.org; Fri, 16 Apr 2021 13:59:16 +0000 Received: by mail-ed1-x530.google.com with SMTP id x4so32427961edd.2 for ; Fri, 16 Apr 2021 06:59:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=8s5Zfkf40nT8VpX3Cuifl+4p1xtQC/2xHmgz4g7uY1M=; b=x0+q+wnn+AFArIfgWSBGi5qdOJn7HMwXr1pn+FdxnGJvJ9Njb3EQjo1/ZWEr6EDbZq G7H4D2cV7bAGuDyzIj+NbHbuqJy5Bc0mZljNOqHALDnfRg4fvkV1JDG88A6LqntDHqD8 R45bsVoOiw3VhA0PXN1aG3n6Sewoay4OY9XqqKiBaKeivFpSimV6IuwOv+FWJafyHojC apjc4gSf7GrTyuBT2eU8he4Tq+1rPekOt66QuG8GdmndQ7kOc2lys9rkUMwyO+bBm5ns E3nK6+z9VoyacLlT0K6ihkR2F8Yqqw1DbG69hZug9+vzaBqfZp8umwXZ46WCfVFIN0nO 1ydg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=8s5Zfkf40nT8VpX3Cuifl+4p1xtQC/2xHmgz4g7uY1M=; b=BkYTbSI8ioLMPc4Ey+TizUZ1cPoc9exLfshM5vBCIL2lW8Ym+6ekRwcdMYbrr7IEwI mgZ5aBzI37j4rex0TCBq93OJ3ZLeVBD+AtiNefFRgEsAjakTcHZqgxuUfzw2SjUTKNyM K1sATSW4E32BhEvHRVM3O88aIsZonmopO2LXp73X0Zz4BMmFO9zKn7ZcHoMlCMmmU0iz 9pSon/2QnquCUXrz3PtAQIHsKcYzlK84FLaDkbAvCIf0AG7PKgHKG355dWa50/cIrBWD CYq6tgXPwGFu8OMPPup1xbf8prWcfDa3nusXCNTl2h+Q6157GXUKKgkwnJ+vNXB7wON2 kvWA== X-Gm-Message-State: AOAM533u/LXy7f9cchPxG4vWmg1qzXB1NWTkb5ealnsZ6PdKz6k3d55G +LOyIPRD0gVTCxUzA/xQvWVcaQ== X-Google-Smtp-Source: ABdhPJxfjMEXRp2gfCToRfHE6cJQBhDIBLIZdoQ5ZwfPU2w/wk4y5OknW5tb0BsdMbQS7ovIRDvZrw== X-Received: by 2002:a05:6402:3506:: with SMTP id b6mr10452781edd.175.1618581550504; Fri, 16 Apr 2021 06:59:10 -0700 (PDT) Received: from localhost.localdomain (217-149-160-68.nat.highway.telekom.at. [217.149.160.68]) by smtp.gmail.com with ESMTPSA id n3sm4282715ejj.113.2021.04.16.06.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 06:59:10 -0700 (PDT) Message-ID: <616119102ade0feacd7f0a1ec376859a26ffe83d.camel@cybertec.at> Subject: Re: Size of PostgreSQL backup ./. Sybase DUMP From: Laurenz Albe To: Matthias Apitz , pgsql-general@lists.postgresql.org Date: Fri, 16 Apr 2021 15:59:09 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-04-16 at 15:47 +0200, Matthias Apitz wrote: > 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? I don't know anything about Sybase, but if that dump is something akin to "pg_dump", then you are comparing apples and oranges. Moreover, the base backup is compressed, and I don't know if the Sybase dump is. If you had used PostgreSQL v13, you could check the backup for completenes. But the best test for a backup is to restore it. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com