My thoguths...
On Tue, Feb 2, 2021 at 3:20 PM Jarkko Laiho <
jarkko...@taiste.com> wrote:
> 1. Is manually running barman backup necessary at all for the functioning of barman? I ran it once after initial setup when barman check complained about the minimum redundancy requirement of 1 (which I set myself) not being fulfilled, but would that requirement have been fulfilled on its own after some time had passed? (This is mainly terminology confusion about what a "backup" is in terms of all of Barman's functionality; man 5 barman just says "Minimum number of backups to be retained" for minimum_redundancy)
If you don't run a backup, barman will do nothing. Barman creates a
"frozen" backup and merges it with incoming wals, but if you don't
have a backup you cannot do a restore.
Usually you schedule "backup" via cron or tools like that.
>
> 2. Had I never run barman backup, I presume that at any time in the future, I would have still been able to recover to any point in time 7 days back from that future time with the WAL-based methods, due to retention_policy?
Retention policy decides when a backup can be expired, that in your
case is a backup older than 7 days can be pruned. So, the quick answer
to your question is NO.
Moreover, consider what happens if you stay with only one backup
(assuming no retention policy is in place): you can move to any point
in time during a recovery, but to do a ful recovery you need to apply
a lot of wals from the time you took your original backup.
>
> 3. Does running barman backup interact with the archival and streaming backups in any way, or is merely a tool for creating frozen points in time that you might want to return to beyond your normal recovery window?
>
It issues a pg_start_backup and pg_stop_backup, as far as I know. In
turn, the above, do no interact very much with the cluster.
> 4. When using the combination of archive_command and streaming, you (at least in theory) gain robustness, but is there any real downside, like more disk space used on the backup server?
Don't know this, never used. I suspect in the long run you will not
have a doubled storage occupation, probably in the mid term you will
have because WALs are incoming as different sources.
>
> 5. In the manual, under Catalog Management Features, there is this warning: "Make sure that your retention policy settings do not collide with minimum redundancy requirements. Regularly check Barman's log for messages on this topic." Given my setup, under what circumstances – if any – would this collision likely occur?
>
retention policy decides when a backup can be expired, mimimum
redundancy how many you must keep. In your case, having a single
backup satisfies the latter, but could not be good for the former
after a week has elapsed.
I think the collision the documentation is referring to is something
like doing a backup a day, having a window of 7 days and a mimimum
backup policy of 14: this will clearly accumulate more backups than
you need.
> 6. Finally, are there some clear omissions or illogical bits in the configuration as shown?
I would say no, but clearly this is hard to say without knowing your aim.
Luca