|
|
2 months ago | |
|---|---|---|
| files | 3 months ago | |
| Dockerfile | 3 months ago | |
| README.md | 3 months ago | |
| build.sh | 2 months ago |
This image provides a Nextcloud client to sync a Docker volume to a Nectcloud location.
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:子目录路径
USER_UID:系统用户ID,默认1000
USER_GID:系统用户组ID,默认1000
过滤文件:
/config/sync-exclude.lst
~*.tmp
._*
]Thumbs.db
]photothumb.db
System Volume Information
不同步目录列表:
/config/unsync-folders.lst
/Tools
/Backups
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 .