0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-02-08 12:18:26 +01:00

Merge pull request #1383 from Schroedingers-Cat/clearer-migration

Clearer migration documentation
This commit is contained in:
Tilo Spannagel 2021-02-20 20:31:25 +01:00 committed by GitHub
commit 8b9ca85ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,8 +517,6 @@ You're already using Nextcloud and want to switch to docker? Great! Here are som
```php ```php
'datadirectory' => '/var/www/html/data', 'datadirectory' => '/var/www/html/data',
``` ```
4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container): 4. Copy your data (nextcloud_app_1 is the name of your Nextcloud container):
```console ```console
docker cp ./data/ nextcloud_app_1:/var/www/html/ docker cp ./data/ nextcloud_app_1:/var/www/html/
@ -528,6 +526,10 @@ 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 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 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): 5. Copy only the custom apps you use (or simply redownload them from the web interface):
```console ```console
docker cp ./custom_apps/ nextcloud_data:/var/www/html/ docker cp ./custom_apps/ nextcloud_data:/var/www/html/