Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slUtz-008BJM-9m for pgsql-admin@arkaria.postgresql.org; Tue, 03 Sep 2024 14:53:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1slUty-00Cozv-7R for pgsql-admin@arkaria.postgresql.org; Tue, 03 Sep 2024 14:53:02 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1slUtx-00Cozn-Mm for pgsql-admin@lists.postgresql.org; Tue, 03 Sep 2024 14:53:02 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1slUtu-000TcM-TW for pgsql-admin@lists.postgresql.org; Tue, 03 Sep 2024 14:53:01 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-4280ca0791bso47117895e9.1 for ; Tue, 03 Sep 2024 07:52:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1725375178; x=1725979978; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=TuursWPk8MIrTqSkOddLccS3V/49u/7dLUmClF2rGgY=; b=1S4JQaI+h3hK0AdbdWGSC7toB9h7jzYW6+fbYy2pemSn70G3gDd1R/7br6ndUaxmsq uT8+hvcHuRhXSGvgu0oNWH36h9mJSUJCLlk4dFKTY6mQOIIajbqgKrNCKB3ibxqpR2r8 Dp+EYkAoZ6EZvh5d/VoGDgsE09amf6veQWFZzA21XI3o5CTkcst9FOPWRCCFJ76MGC7f gnL2NhTgZB5K9y2VxlvRwqI+qrAxFh0DtkWwoIB9l6ZIErV9HknAeudhtz5kUePqz69S wXNR0eReP1u2pvekoihUZj4KOryTGFyLxdRdUr73o5/wt7X1Vx0HZO5BltKzdH8rsZVf Kezg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725375178; x=1725979978; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=TuursWPk8MIrTqSkOddLccS3V/49u/7dLUmClF2rGgY=; b=Iv+Limxyc6b7rmtyHep4Ph+A66BTJbkUkyQ8Szxsv8q9YDaGbCSJyKKILAKJ7roffM 1a/Um/Y8xzLrs+QuKFeJHFDMA3GKnhoLEmaOsftSWZ8P5RQq2CSLtacfsFwN4SL/S3ZC Xqjlrv/gL/YGvQL8fiCDj6hugjqitXStrMtbtp6mXMIA040K4ggZ++RP1qYMoG0jDDfv 2a0x0zSmfVZg9vXXc9eeDPZGqYIWTZW/MhFcaoH5va3gMpfKXl4aZuw7+ycDdY8RryT2 HiIAY3AkcaKuCpqFYQRA8f+AKqpWqtDBLgUchVRghsBjsxX/ghkvRNsrTthMSJnQ9P5x ABTg== X-Forwarded-Encrypted: i=1; AJvYcCXpioaMV3h9tvKtxuNqFofnVVUpRMWfeEehR30zPCcb1CaKfl3CGdfSUfOAHhNzIgxjmlhzsfpZbYB20Q==@lists.postgresql.org X-Gm-Message-State: AOJu0YwY66VPHH2buLPvPli1HkUplKkXlxRNM+zZ5I+U83HYm2CUglNW 75nFTX4NY5XcIpmW0bXMmfbHtba8yDKdcmrwespIQ2utsUYGUfji8hY0svxtaLq9GwIG5rzNWK+ T X-Google-Smtp-Source: AGHT+IElzAAikwOR0jxAazUGsyLPe70smjx7T3obFhfu30a01Yl/3OtzrH2DKG8M2P/NYWPm0wORNQ== X-Received: by 2002:a05:600c:154e:b0:427:9922:4526 with SMTP id 5b1f17b1804b1-42c8de5f5e9mr8238905e9.7.1725375177261; Tue, 03 Sep 2024 07:52:57 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:5e:b3f6:f9da:3dd8:46f1:b34b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bb72fcca2sm97109605e9.1.2024.09.03.07.52.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 07:52:56 -0700 (PDT) Message-ID: <6202aa6d565279470c4b1fe4c895342d954f8df4.camel@cybertec.at> Subject: Re: Basebackup From: Laurenz Albe To: Rajesh Kumar , Pgsql-admin Date: Tue, 03 Sep 2024 16:52:55 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.4 (3.52.4-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 2024-09-03 at 18:01 +0530, Rajesh Kumar wrote: > How different is basebackup from new server with primary host and rsync f= rom primary,=C2=A0 move to new server and start cluster? The main difference is that you have to stop the server if you want to use = "rsync", otherwise the backup will be inconsistent. A backup taken with "pg_basebackup" will be recovered when you start it. You *can* perform an online file system backup with "rsync", but then you w= ill have to use the low-level backup API: https://www.postgresql.org/docs/current/continuous-archiving.html#BACKUP-LO= WLEVEL-BASE-BACKUP Yours, Laurenz Albe