From 0d4148f9a490aa3177cb00d1037c4c868e00f64b Mon Sep 17 00:00:00 2001 From: Schroedingers-Cat <6382400+Schroedingers-Cat@users.noreply.github.com> Date: Sun, 24 Jan 2021 17:50:07 +0100 Subject: [PATCH] Migration: Clearer distinction between docker cp and system's cp Signed-off-by: Schroedingers-Cat <6382400+Schroedingers-Cat@users.noreply.github.com> --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 39991fb2..b4d67db9 100644 --- a/README.md +++ b/README.md @@ -515,13 +515,17 @@ 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 --preserve ./data/ nextcloud_app_1:/var/www/html/ + 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/ 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 ``` + If you want to preserve the metadata of your files like timestamps, copy the data directly on the host to the named volume using plain `cp` like this: + ```console + cp --preserve --recursive ./data/ /path/to/nextcloudVolume/data + ``` 5. Copy only the custom apps you use (or simply redownload them from the web interface): ```console docker cp ./custom_apps/ nextcloud_data:/var/www/html/