From 16cc6baf4c1d12b24fd956af472af4a1aab876d8 Mon Sep 17 00:00:00 2001 From: Tim Bolender Date: Mon, 20 Apr 2020 11:11:38 +0200 Subject: [PATCH] Use sites volume in all commands --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8376294f..9018eeb3 100644 --- a/README.md +++ b/README.md @@ -221,7 +221,7 @@ Environment Variables - `WITH_FILES` if set to 1, it will backup user-uploaded files. - By default `backup` takes mariadb dump and gzips it. Example file, `20200325_221230-test_localhost-database.sql.gz` - If `WITH_FILES` is set then it will also backup public and private files of each site as uncompressed tarball. Example files, `20200325_221230-test_localhost-files.tar` and `20200325_221230-test_localhost-private-files.tar` -- All the files generated by backup are placed at volume location `sites/{site-name}/private/backups/*` +- All the files generated by backup are placed at volume location `sites-vol:/{site-name}/private/backups/*` ```sh docker exec -it \ @@ -230,7 +230,7 @@ docker exec -it \ _erpnext-python_1 docker-entrypoint.sh backup ``` -The backup will be available in the `sites` mounted volume. +The backup will be available in the `sites-vol` volume. #### Push backup to s3 compatible storage @@ -250,7 +250,7 @@ Environment Variables -e "SECRET_ACCESS_KEY=secret_access_from_provider" \ -e "ENDPOINT_URL=https://region.storage-provider.com" \ -e "BUCKET_DIR=frappe-bench-v12" \ - -v ./installation/sites:/home/frappe/frappe-bench/sites \ + -v sites-vol:/home/frappe/frappe-bench/sites \ --network _default \ frappe/frappe-worker:v12 push-backup ``` @@ -308,7 +308,7 @@ docker run \ -e "SECRET_ACCESS_KEY=secret_access_from_provider" \ -e "ENDPOINT_URL=https://region.storage-provider.com" \ -e "BUCKET_DIR=frappe-bench-v12" \ - -v ./installation/sites:/home/frappe/frappe-bench/sites \ + -v sites-vol:/home/frappe/frappe-bench/sites \ -v ./backups:/home/frappe/backups \ --network _default \ frappe/frappe-worker:v12 restore-backup