Skip to content

A simple docker container to start single runs of owncloud syncs

Notifications You must be signed in to change notification settings

citrininfo/docker-owncloud-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

citrin/owncloud-client

This is a simple docker container to start single runs of owncloud syncs.

Usage

Example

docker run -ti --rm \
  --volume ~/owncloud/data:/data \
  --volume ~/owncloud/conf:/conf \
  --env SERVER=https://my.owncloud.test/remote.php/webdav/Path/To/Sync \
  --env HOST_UID=$(id -u) \
  --env HOST_GID=$(id -g) \
  citrin/owncloud-client

This syncs the data in ~/owncloud/data with Path/To/Sync on the server my.owncloud.test.

Credentials

The credentials are safed in the netrc file ~/owncloud/conf/.netrc

For example:

machine my.owncloud.test login myuser password mypassword

Config Files

Currently only .netrc and sync-exclude.lst (passed as --exclude) are supported. All other files are ignored.

Options

The following environment variables are supported:

HOST_UID
The user id to write the files as (Ubuntu default: 1000)
HOST_GID
The group id to write the files as (Ubuntu default: 1000)
TRUST_SELFSIGN
If set to 1 it adds --trust to the owncloudcmd
SYNC_HIDDEN
If set to 1 it adds -h to the owncloudcmd
SHOW_OUTPUT
If set to 1 it removes --silent from the owncloudcmd

Custom Call

If you don't want the custom options --non-interactive -n to be passed to owncloudcmd you can overwrite the CMD:

docker run -ti --rm \
  --volume ~/owncloud/data:/data \
  --volume ~/owncloud/conf:/conf \
  --env HOST_UID=$(id -u) \
  --env HOST_GID=$(id -g) \
  citrin/owncloud-client owncloudcmd /data https://my.owncloud.test/remote.php/webdav/Path/To/Sync

There you can pass any owncloudcmd options you might need.

Development

Build with:

docker build --tag citrin/owncloud-client .

Push with:

docker login
docker push citrin/owncloud-client

About

A simple docker container to start single runs of owncloud syncs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages