Sign inSign up

dyonr/owncloud-client

By dyonr

Updated over 3 years ago

Dockerized ownCloud CLI Client (owncloudcmd) to sync from any supported ownCloud-like enviroment.

Image
0

10K+

dyonr/owncloud-client repository overview

docker-owncloud-client

Docker Pulls Docker Image Size (tag)

Dockerized ownCloud CLI Client (owncloudcmd) to sync from any supported ownCloud or Nextcloud-like environment.
This container should work with any ownCloud, Nextcloud, TransIP STACK or any other ownCloud/Nextcloud based storage endpoint.

I forked the original project to be able to run TransIP's STACK in a Docker.

The main use of this Docker is to be able to synchronise with a ownCloud or Nextcloud-like environment that is not part of the server that you run this Docker on. Example use case of this container is that you have a remote (ownCloud or Nextcloud) cloud storage somewhere, that you wish to have continously synced with your server that runs this Docker. Like the ownCloud/Nextcloud of a friend or a paid ownCloud/Nextcloud-like environment like TransIP STACK.

Docker Features

  • Base: Debian 10
  • Size: <100MB
  • Ability to only sync only one (sub)folder
  • Created with Unraid in mind

Run container from Docker registry

The container is available from the Docker registry and this is the simplest way to get it.

To run the container use this command:

$ docker run -d \
             --name='owncloud-client' \
             -v /your/ocdata/path/:/ocdata \
             -e OC_USER=owncloud_username \
             -e OC_PASS=owncloud_password \
             -e OC_SERVER=myowncloud.com \
             --restart unless-stopped \
             'dyonr/owncloud-client'

Environment Variables & Volumes

Environment Variables

VariableRequiredFunctionExampleDefault
OC_USERYesUsername (or email) to connect to ownCloudOC_USER=dyonr
OC_PASSYesPassword or App-Token for the ownCloud userOC_PASS=ac98df79ed7fb
OC_SERVERYesownCloud Environment server address, with port if it's not a default port numberOC_SERVER=example.com:8443
OC_PROTONoConnect via http or httpsOC_PROTO=httpshttps
OC_URLPATHNoServer path to the ownCloud instance (example: https://example.com:8443/owncloud/ becomes /owncloud/)OC_URLPATH=/owncloud//owncloud/
OC_WEBDAVNoIn case the webdav path is not remote.php/webdav, you can change it hereOC_WEBDAV=remote.php/webdavremote.php/webdav
OC_FILEPATHNoOnly sync one specific folderOC_FILEPATH=/Pictures/Holiday-2020/
TRUST_SELFSIGNNoIgnore self-signed certificate errors (Set to 1 to ignore SSL errors)TRUST_SELFSIGN=00
SYNC_HIDDENNoSet to 1 to sync all hidden files within the specified ownCloud directorySYNC_HIDDEN=00
SILENCE_OUTPUTNoSet to 0 to get more verbose outputSILENCE_OUTPUT=11
RUN_INTERVALNoInterval in seconds at which the client will run and check for changesRUN_INTERVAL=6030
RUN_UIDNoUID of the occlient user and the /ocdata folder/filesRUN_UID=9999
RUN_GIDNoGID of the occlient user and the /ocdata folder/filesRUN_UID=100100

Volumes

VolumeRequiredFunctionExample
ocdataYesownCloud sync location/your/ocdata/path/:/ocdata

Ports

This Docker container exposes no ports, has no UI and therfore does not need to have any ports exposed.

Issues

If you are having issues with this container please submit an issue on GitHub. Please provide logs, Docker version and other information that can simplify reproducing the issue. If possible, always use the most up to date version of Docker, you operating system, kernel and the container itself. Support is always a best-effort basis.

Disclaimer

I am not responsible for any data loss due wrong configurations.

Tag summary

Content type

Image

Digest

sha256:01dfcc951

Size

82.8 MB

Last updated

over 3 years ago

docker pull dyonr/owncloud-client