Hi Veit,
thank you for your praises, they are really well accepted. I suggest
that you read this article, if you have not done so earlier:
http://blog.2ndquadrant.com/management-wal-archive-barman/
I tried to explain how the WAL archive works with Barman and I
believe it should answer your questions.
Cheers,
Gabriele
On Tue, 12 Nov 2013 20:01:41 +0100, Veit Guna <
veit...@gmx.de> wrote:
> Hi.
>
> Thanks for the tips. I don't want to hijack this thread, but I have a
> question that goes in the same direction.
> I am doing a nightly base backup with barman and syncing wals via
> rsync.
> I would like to keep the last 5 base backups and one per month just
> for safety and historical reasons.
> I made a script that uses the barman script accordingly using delete
> etc.
> But it seems that the size of the last base backups wals is still
> increasing over time when new base backups are performed.
> Is this expected behavior or do I see things the wrong way? I am
> using barman list command to verify the sizes.
> I would expect that the size of an old backup is fix after a new
> base backup is created. Do I miss something?
>
> Keep up the good work :-)!
>
> Damon Snyder schrieb:
> * Consider the impact of the backup on the running system and your
> users. A base backup is going to be IO intensive depending on the
> size
> of your database. In our case, we can only tolerate doing the backups
> during off-peak hours in the middle of the night.
> * How much of an outage can you tolerate? Run some tests. Take a
> backup, wait 24 hours, then try a restore. How long does it take to
> restore? Using that as a guide you can then toggle the frequency to
> match your business requirements.
> * Consider the cost. Keeping more backups requires more disk space.
> Do you need redundancy in your backups? How many do you need to keep?
> Are there legal requirements?
>
> Addressing your specific example regarding taking a backup on Sunday
> and restoring on Thursday-- the base backup plus all of the WALs up
> to
> the point of disaster should be enough to restore the system up to
> the
> last complete WAL that was archived. Depending on your configuration
> this could mean a data loss of zero to some number of minutes
> determined by your checkpoint settings. Generally speaking the data
> loss should be minimal. Note that if your base backup is large and
> the
> number of data modifications is also large then the recovery could
> take some time (it also depends on your IO subsystem). In our case, a
> ~60GB database + 8 hours of WALs (90/10 read to write workload) takes
> about 30 minutes to restore on enterprise SSDs.
>
> Hope this helps,
> Damon
>
> gabriele....@2ndQuadrant.it |
www.2ndQuadrant.it [2]
>
> --
> --
> You received this message because you are subscribed to the "Barman
> for PostgreSQL" group.
> To post to this group, send email to
pgba...@googlegroups.com [3]
> To unsubscribe from this group, send email to
>
pgbarman+u...@googlegroups.com [4]
> For more options, visit this group at
>
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB [5]
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
> To unsubscribe from this group and stop receiving emails from it,
> --
> Von meinem Tablet gesendet.
>
> --
> --
> You received this message because you are subscribed to the "Barman
> for PostgreSQL" group.
> To post to this group, send email to
pgba...@googlegroups.com
> To unsubscribe from this group, send email to
>
pgbarman+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB [9]
>
> ---
> You received this message because you are subscribed to the Google
> Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to
pgbarman+u...@googlegroups.com.
--
Gabriele Bartolini - 2ndQuadrant Italia
PostgreSQL Training, Services and Support
Gabriele....@2ndQuadrant.it -
www.2ndQuadrant.it