Skip to content

Instantly share code, notes, and snippets.

@imcookie
imcookie / wal-e.md
Created August 22, 2020 22:37 — forked from ruckus/gist:2293434
Basic setup of WAL-E for continuous archiving and recovery

WAL-E needs to be installed on all machines, masters and slaves.

How to install WAL-E

Only one machine, the master, writes WAL segments via continuous archiving. The configuration for the master postgresql.conf is:

archive_mode = on
archive_command = 'envdir /etc/wal-e.d/env wal-e wal-push %p'
archive_timeout = 60
@imcookie
imcookie / ansible_local_playbooks.md
Last active June 16, 2019 13:34 — forked from alces/ansible_local_playbooks.md
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local --inventory 127.0.0.1, playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local