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:
commit
8b9ca85ac5
1 changed files with 56 additions and 54 deletions
|
@ -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/
|
||||||
|
|
Loading…
Reference in a new issue