From d8be2a1d3cc05e93f0a91fdf0175ddbc1919f2c1 Mon Sep 17 00:00:00 2001 From: David Cook Date: Mon, 9 Sep 2024 13:20:32 +1000 Subject: [PATCH] Update notes --- README.md | 1 + playbooks/db_transfer.yml | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d63ae9a9b..20d07343fa 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/playbooks/db_transfer.yml b/playbooks/db_transfer.yml index 7b9925ddde..3335d5b50a 100644 --- a/playbooks/db_transfer.yml +++ b/playbooks/db_transfer.yml @@ -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