This image provides you an alpine based image for syncing your files with a remote nextcloud server
This image is based on the work made by: Martin Peters and Juan Ignacio Borda
Any comment or propblem feel free to fill an issue or make a PR!
docker run -d --name nextcloud-client \
-v [nextcloud-folder]:/media/nextcloud \
-e NC_USER=[nextcloud-user] \
-e NC_PASS=[nextcloud-password] \
-e NC_URL=[nextcloud-server_url] \
--restart=always \
dontobi/nextcloud-client.rpi:latest
Example with settings folder. You have to place a "exclude" file and a "unsyncfolders" file into one directory and mount it into the docker container
docker run -d --name nextcloud-client \
-v [nextcloud-folder]:/media/nextcloud \
-v [nextcloud-folder]:/settings \
-e NC_USER=[nextcloud-user] \
-e NC_PASS=[nextcloud-password] \
-e NC_URL=[nextcloud-server_url] \
--restart=always \
dontobi/nextcloud-client.rpi:latest
file1
file2
folder1
folder2
URL to the Nextcloud instance. Example: https://cloud.example.com
The user name to log in Default: username
Valid password for the user above in clear text Default: password
The directory inside de docker container to be synced, usually you will have a local mount here or a named volume default: /media/nextcloud/
You can sync specific folders by providing the full path like /path/to/custom/dir
. This will only sync the contents of this folder inside $NC_SOURCE_DIR
.
default: "" i.e. root folder
whether or not output activity to console default: false
Sets the interval between syncs in seconds default: 300 (300 / 60 = 5 Minutes)
If "true" the sync will happen once and then the container will exit, very usefull for using in conjunction with cron or schedulers default: false
The system user inside the container you want to use for runing the sync
default: ncsync
The system user group id inside the container you want to use for runing the sync
default: 1000
The system user id inside the container you want to use for runing the sync
default: 1000
whether or not trust self signed certificates or invalid certificates
default: false
NC_HIDDEN
whether or not nextcloud should be forced to sync hidden files
default: false
MIT License
Copyright (c) 2022-2024 [Tobias 'dontobi' Schug]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.