Base Backups to a remote location - Mailing list pgsql-admin

From Boris Bukowski
Subject Base Backups to a remote location
Date
Msg-id MP75BCF26F00D12852A1A181.6040300@louis.info
Whole thread Raw
Responses Re: Base Backups to a remote location  (Giuseppe Broccolo <giuseppe.broccolo@2ndquadrant.it>)
List pgsql-admin
Hi,

i use the following script to backup servers every day to a remote location.

---snip---
REMOTE=xyz123.louis.info
DATE=`date +%Y%m%d%H%M%S`

ssh xyz123.louis.info "echo \"checkpoint; SELECT
pg_start_backup('${DATE}');\" |psql"

rsync -avxz  --numeric-ids --exclude-from=/backup1/config/excludes.txt
--delete-excluded --inplace --delete root@${REMOTE}:/
/mnt/backup1/remote/xyz123/full

ssh xyz123.louis.info "echo \"SELECT pg_stop_backup();\" |psql"

---snip---

i have some questions about this:
1. will this always work?
2. between these backups i do not save the archive logs, is this secure?
3. is it save to empty the archive directory befor i do a backup with
pg_start_backup()?

best Regards
Boris Bukowski



pgsql-admin by date:

Previous
From: Jorge Torralba
Date:
Subject: pg_archivecleanup issues
Next
From: Giuseppe Broccolo
Date:
Subject: Re: Base Backups to a remote location