From: | Vibhor Kumar <vibhor(dot)kumar(at)enterprisedb(dot)com> |
---|---|
To: | runner <runner(at)winning(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Backups with continuous archiving |
Date: | 2011-03-23 10:51:56 |
Message-ID: | 334E1437-45C6-4D52-BDEA-2B3E2D254857@enterprisedb.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Mar 22, 2011, at 5:20 AM, runner wrote:
> A) CREATING FILESSYSTEM SNAPSHOTS - We're snapping the data, wal and archive directories. We only plan on using the data snap and that's just so we can perform the backup faster. Will the wal and archive snapshots be useful for anything?
Archived WAL would be require for PITR/to take the Online Backup to Consistent State.
You can try: i) pg_start_backup, ii) Snapshot of data Directory, iii) Tar Archived WAL.
Snapshot of Archived WAL File should work, however, at the place of using snapshot of Archived WAL Files, I would recommend to use OS Command to backup the WAL Files.
> B) DELETING THE OLD ARCHIVE LOGS - After you have the data, wal and archive directories tarred up and saved somewhere, how do you manage the deletion of the old archive logs? Do you run a find command and delete based on the age of the file? What the the best way to manage the removal of old archive logs?
Its totally upto you which method you want to follow.
tar command gives an option of deleting of files, after archiving it (--remove-files).
Thanks & Regards,
Vibhor Kumar
Blog:http://vibhork.blogspot.com
From | Date | Subject | |
---|---|---|---|
Next Message | salah jubeh | 2011-03-23 12:18:12 | General question |
Previous Message | Vibhor Kumar | 2011-03-23 10:35:18 | Re: Utilities for managing streaming replication servers? |