Skip to content

Commit

Permalink
Update notes
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Sep 9, 2024
1 parent 44c5556 commit d8be2a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ These are the main playbooks (found under `playbooks/`). See inside each for mor
Other playbooks include:
* `backup.yml` - Backup database and image files on the server to the local machine.
* `rollback.yml` - Rollback the database and codebase to the previous version.
* `db_transfer.yml` - Transfer the database directly from one host to another (see [Refreshing a staging server](https://github.com/openfoodfoundation/ofn-install/wiki/Refreshing-a-staging-server))

You may want to use the [ansible option "checkrun"](http://docs.ansible.com/playbooks_checkmode.html) to do a dry-run of the playbooks. With this option, Ansible will run the playbooks, but not actually make changes on the server.

Expand Down
4 changes: 3 additions & 1 deletion playbooks/db_transfer.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
# Dumps the database on the target server, transfers the dump to a specified remote
# using the SSH forwarding, then (forcibly) restores the dump to the database on the remote.
# Requires "rsync_to" variable as remote server for rsync e.g: `-e "rsync_to=uk-staging"`.
# Requires:
# * ssh access for remote to access target
# * "rsync_to" variable e.g.: `--limit=uk_prod -e "rsync_to=uk_staging"`.

- name: Transfer database with SSH forwarding
hosts: ofn_servers
Expand Down

0 comments on commit d8be2a1

Please sign in to comment.