# Nextcloud client This image provides a Nextcloud client to sync a Docker volume to a Nectcloud location. ## 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. The files will be synced to the continer's `/home/nextcloud/data` directory. If you want to sync a docker volume to a certian location within the synced directory structure, just exchange the `-v` parameter accordingly. i.e.: `-v image-files:/home/nextcloud/data/image-files` Synchronization is performed every 60 seconds. ``` 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 ``` ## 参数说明: USER:用户名 PSWD:密码 HOST:网址路径 FNAME:子目录路径 ## 配置文件路径 过滤文件: /config/sync-exclude.lst ``` ~*.tmp ._* ]Thumbs.db ]photothumb.db System Volume Information ``` 不同步目录列表: /config/unsync-folders.lst ``` /Tools /Backups ``` ## demo ``` docker run -d --init \ --name nextcloud-client-***-works \ --restart unless-stopped \ -v /vol2/1000/Works:/home/nextcloud/data \ -v /vol1/1000/Docker/nextcloud-client/config:/config \ -e USER='***' \ -e PSWD='****' \ -e HOST='http://192.168.153.5/' \ -e FNAME='/Works' \ nextcloud-client ``` # 编译 ## 命令 ``` docker build -t nextcloud-client . ```