0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-17 18:46:43 +01:00

Migration: Clearer distinction between docker cp and system's cp

Signed-off-by: Schroedingers-Cat <6382400+Schroedingers-Cat@users.noreply.github.com>
This commit is contained in:
Schroedingers-Cat 2021-01-24 17:50:07 +01:00
parent d7e6260688
commit 0d4148f9a4

View file

@ -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/