On 6/5/2021 14:40, Guillaume Lelarge wrote:
you should write your own scripts imho.
Actually, you shouldn't write your own. You should use an existing one, such as barman or pgbackrest.
pgbackrest is a lot more than just something that runs base backups. With that said I use and recommend it and its ability to do incremental copies as well as full backups, as well as being able to keep the copies either compressed (saves disk) or "ready to go" (can be started directly) is extremely useful, plus it can optimize transport as well.