|
|
@@ -1,9 +1,6 @@
|
|
|
# Nextcloud client
|
|
|
This image provides a Nextcloud client to sync a Docker volume to a Nectcloud location.
|
|
|
|
|
|
-## Deprecated
|
|
|
-This repo was moved to [GitLab](https://gitlab.com/nilsramsperger/docker-nextcloud-client).
|
|
|
-
|
|
|
## Usage
|
|
|
To start the container run `docker run -d --init --name nextcloud-client --restart unless-stopped -v nextcloud-data:/home/nextcloud/data -e USER='myuser' -e PSWD='mypswd' -e HOST='https://myhost' nilsramsperger/nextcloud-client`
|
|
|
The env parameters `USER`, `PSWD` and `HOST` have to be replaced with username, password and host URL of the NextCloud server.
|
|
|
@@ -14,15 +11,60 @@ i.e.: `-v image-files:/home/nextcloud/data/image-files`
|
|
|
|
|
|
Synchronization is performed every 60 seconds.
|
|
|
|
|
|
-## FAQ
|
|
|
-### Question
|
|
|
-Existing files on Nextcloud server are not synced to client.
|
|
|
-The docker log tells, that access was denied.
|
|
|
-
|
|
|
-### Answer
|
|
|
-Folders might be created with wrong rights on first sync.
|
|
|
-Tap into the continer by `docker exec -it nextloud ash`.
|
|
|
-Then switch to the Nextcloud folder by `cs /home/nextcloud/data`.
|
|
|
-`ls -Al` should show folders owned by `root:root`.
|
|
|
-Issue a `chown -R nextcloud:nextcloud *` to fix it.
|
|
|
-Then `exit` the container.
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+docker run -d --init --name nextcloud-client --restart unless-stopped -v nextcloud-data:/home/nextcloud/data -e USER='myuser' -e PSWD='mypswd' -e HOST='https://myhost' -e PATH_URL nilsramsperger/nextcloud-client
|
|
|
+```
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+```
|
|
|
+docker run -d --init \
|
|
|
+ --name nextcloud-client-lr \
|
|
|
+ --restart unless-stopped \
|
|
|
+ -v /mnt/NasData/Data/cloud_samien_cn/lr:/home/nextcloud/data \
|
|
|
+ -v /mnt/NasData/Data/docker/nextcloud-client/config:/config \
|
|
|
+ -e USER='samien' \
|
|
|
+ -e PSWD='1278852633' \
|
|
|
+ -e HOST='http://192.168.153.5/' \
|
|
|
+ nextcloud-client
|
|
|
+```
|
|
|
+
|
|
|
+参数说明:
|
|
|
+
|
|
|
+USER:用户名
|
|
|
+
|
|
|
+PSWD:密码
|
|
|
+
|
|
|
+HOST:网址路径
|
|
|
+
|
|
|
+FNAME:子目录路径
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+配置文件路径
|
|
|
+
|
|
|
+过滤文件:
|
|
|
+
|
|
|
+/config/sync-exclude.lst
|
|
|
+
|
|
|
+```
|
|
|
+~*.tmp
|
|
|
+._*
|
|
|
+]Thumbs.db
|
|
|
+]photothumb.db
|
|
|
+System Volume Information
|
|
|
+```
|
|
|
+
|
|
|
+不同步目录列表:
|
|
|
+
|
|
|
+/config/unsync-folders.lst
|
|
|
+
|
|
|
+```
|
|
|
+/Tools
|
|
|
+/Backups
|
|
|
+```
|
|
|
+
|