mirror of
https://github.com/nextcloud/docker.git
synced 2025-03-14 18:35:08 +01:00
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 <pyro4hell@gmail.com>
This commit is contained in:
parent
051792533a
commit
76da6bc25d
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue