Create a configuration folder with 2 files :
.netrc
: netrc configuration file for authentication on nextcloud server. E.gdefault login mylogin password mypassword
sync-exclude.lst
: list of files or folder to exclude in the format generated by the Ignored Files Editor
Launch the docker image with:
- Volumes:
/data
: folder of synced data/log
: folder for sync logs/conf
: folder containing configuration files
- Env:
LANG
: theLANG
for encoding in file names. Defaults to 'C.UTF-8'SERVER
: the Nextcloud server URLDAVPATH
: the WebDAV path on the server. Defaults to '/remote.php/dav' (may have to change for '/remote.php/webdav')PERIODICITY
: sync periodicity in crontab format (but DO NOT USE @xxx formats). Defaults to0 * * * *
(hourly)
E.g:
docker run --detach \
--volume ~/nextcloud-sync:/data \
--volume /var/log:/log \
--volume /etc/nextcloud-sync/:/conf \
--env LANG=fr_FR.ISO-8859-15 \
--env SERVER=http://nextcloud.server.com/ \
--env PERIODICITY='*/15 * * * *' \
zigarn/nextcloud-client