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.89) (envelope-from ) id 1gW7Uu-0001EF-Ja for pgsql-admin@arkaria.postgresql.org; Sun, 09 Dec 2018 22:24:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gW7Us-0002Xd-7o for pgsql-admin@arkaria.postgresql.org; Sun, 09 Dec 2018 22:24:22 +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 1gW7Ur-0002XL-RF for pgsql-admin@lists.postgresql.org; Sun, 09 Dec 2018 22:24:22 +0000 Received: from mail-oi1-x243.google.com ([2607:f8b0:4864:20::243]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gW7Up-0007Nm-23 for pgsql-admin@postgresql.org; Sun, 09 Dec 2018 22:24:20 +0000 Received: by mail-oi1-x243.google.com with SMTP id x202so7498222oif.13 for ; Sun, 09 Dec 2018 14:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=LMQYcgWyP28NxYuTdJgzZg4mnaPGF8xC4TCPSvN6UBA=; b=CDAym2BniswTGRAG0q+38NVPfbEfT2Xrw9kJjHbIHrH95AGAV5Z77VgiQM9EY1aUAZ Z/8sfznt8900YR9+TpJ00BEPoygZTUewpMX+nd7U0b/Cd0BXjL/bHvQoSi6efTUSaDqB H2Eh+rVTknd7YHUazLgMyPA/lQldKqhINkaBzGxK7bJxvIuyBxtcedQa0zo1W1tBa5QT R/LrkMv4mFQPcQuOPfyxdy/7dFj+xDFpiwmh47rY8u/k7vjwKrjlm6kRbKOktHDMo2Ll hy2OVCehLg7RUsAVJ7UwaPFGIClMzSp0YwPbNlQPS04umAVsKRo5fHAbujbxGTWo9r2+ z0Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=LMQYcgWyP28NxYuTdJgzZg4mnaPGF8xC4TCPSvN6UBA=; b=EK3gJk6N6Q32Ml88CZBrnl2R3bFnCe80oM9JoVYqPVDlZ6IQ+56yWHZQn3O2nMebHB lVXh9OV2D2TFxOB6lFTeB8IeYiXh+/znvBNYTJDHpw7OWh+MZAV5Q+UCFG3gWrS8NgqT /Yx3+x5I1Bo3VNOJ07WPKzUf9mzAIZv/o8ZGHaPQL1wTAHnyJ8w2LoERoqHwzW236VdJ NCEa+h8J9teWSFBmBKjxK3wWnLqzKMQyWTb3H0nzhntryQ6RcW8rIyqvIpaG31X52n2J dCkT8rEDnKVsib6rDBthmNylkciCoJj1AcuKWwMAw3UbfBQpvD23DGVzc7JyiPTybHxc Lzhg== X-Gm-Message-State: AA+aEWY+WvF68RqCii5aQut00HBLWGxO3gRCLKq2WXeySa48ZxpCYWiq sBsslAPtFh2jxMdz9EHQ8rVXOdJ8 X-Google-Smtp-Source: AFSGD/UV3eeUyBVNSNWerqSsM/4Ok4sq68SI89oINu2OBPW5VbPxwgBLuwPmPIMa25n1bnQNAuPpjg== X-Received: by 2002:aca:e183:: with SMTP id y125mr6275203oig.184.1544394257906; Sun, 09 Dec 2018 14:24:17 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id k23sm4241380oic.41.2018.12.09.14.24.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Dec 2018 14:24:17 -0800 (PST) Subject: Re: pgbackrest periodic WAL backups? To: pgsql-admin@postgresql.org References: <20181209191035.GG3415@tamriel.snowman.net> From: Ron Message-ID: <859f2c25-3a22-71fa-e1fa-764724183764@gmail.com> Date: Sun, 9 Dec 2018 16:24:16 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181209191035.GG3415@tamriel.snowman.net> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/09/2018 01:10 PM, Stephen Frost wrote: > Greetings, > > * Ron (ronljohnsonjr@gmail.com) wrote: >> I've got a full pgbackrest backup in crontab that runs weekly, and a diff >> backup that runs nightly.  However, I can't find any way to do hourly WAL >> backups. >> >> Or does "archive_command = 'pgbackrest --stanza=demo archive-push %p'" just >> keep things automatically caught up, obviating the need for periodic WAL >> backups (as are needed in other RDBMSs)? > Yes and no. With the archive command, every WAL archived will be pushed > to the archive more-or-less immediately (or, at least, as fast as your > system can get it there, if you enable parallel archiving in > pgbackrest), however, WAL files have a size (by default 16MB) and if you > have a very slowly changing system then it could possibly be hours > between WALs being pushed to the archive by archive_command. > > You can address that risk by enabling archive_timeout, which will make > PostgreSQL archive the WAL file even if it isn't full after a certain > amount of time, reducing the potential data loss window. I thought checkpoint_timeout forced a WAL switch. -- Angular momentum makes the world go 'round.