git-annex/doc/tips/owncloudannex.mdwn

33 lines
1,000 B
Text
Raw Normal View History

2014-01-10 14:34:55 +00:00
owncloudannex 0.2.0
2013-06-01 08:42:56 +00:00
=========
Hook program for gitannex to use owncloud as backend
# Requirements:
python2
2014-01-10 14:31:08 +00:00
python-requests
2013-06-01 08:42:56 +00:00
2014-01-10 14:31:08 +00:00
Credit for the webdav api interface goes to https://launchpad.net/python-webdav-lib
2013-06-01 08:42:56 +00:00
# Install
Clone the git repository in your home folder.
git clone git://github.com/TobiasTheViking/owncloudannex.git
This should make a ~/owncloudannex folder
# Setup
2014-01-10 14:31:08 +00:00
Make the file executable, and link it into PATH
2013-06-01 08:42:56 +00:00
2014-01-10 14:31:08 +00:00
cd ~/owncloudannex; chmod +x git-annex-remote-owncloud; sudo ln -sf `pwd`/git-annex-remote-owncloud /usr/local/bin/git-annex-remote-owncloud
2013-06-01 08:42:56 +00:00
# Commands for gitannex:
2014-01-10 14:31:08 +00:00
USERNAME="login" PASSWORD="password" git annex initremote owncloud type=external externaltype=owncloud encryption=shared folder=gitannex url="https://host/remote.php/webdav/"
git annex describe dropbox "the owncloud library"
2018-09-06 01:01:04 +00:00
# Note
This can also be accomplished through the [[special_remotes/webdav]] special remote as Owncloud and Nextcloud are basically webdav endpoints.