From 76da6bc25de5c3a9b3eea0c9d352ef60d72a75c9 Mon Sep 17 00:00:00 2001 From: NeroBurner Date: Thu, 10 Oct 2019 15:18:06 +0200 Subject: [PATCH] README: fix migration copy commands When the docker-compose up is run the first time the nextcloud directories are created. When after that the `docker cp` command copies whole folders they are added as subfolders to the existing folders. For example, when copying the data folder with ``` docker cp ./data/ nextcloud_app_1:/var/www/html/data ``` afterwards the data folder is in `/var/www/html/data/data` Signed-off-by: NeroBurner --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a20d2437..4bc8954d 100644 --- a/README.md +++ b/README.md @@ -386,16 +386,16 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som 4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container): ```console -docker cp ./data/ nextcloud_app_1:/var/www/html/data +docker cp ./data/ nextcloud_app_1:/var/www/html/ docker-compose exec app chown -R www-data:www-data /var/www/html/data -docker cp ./theming/ nextcloud_app_1:/var/www/html/theming +docker cp ./theming/ nextcloud_app_1:/var/www/html/ docker-compose exec app chown -R www-data:www-data /var/www/html/theming docker cp ./config/config.php nextcloud_app_1:/var/www/html/config docker-compose exec app chown -R www-data:www-data /var/www/html/config ``` 5. Copy only the custom apps you use (or simply redownload them from the web interface): ```console -docker cp ./apps/ nextcloud_data:/var/www/html/custom_apps +docker cp ./custom_apps/ nextcloud_data:/var/www/html/ docker-compose exec app chown -R www-data:www-data /var/www/html/custom_apps ```