gilbertchen / duplicacy

A new generation cloud backup tool
https://duplicacy.com
Other
5.24k stars 338 forks source link

OpenStack Swift support #6

Open segator opened 8 years ago

segator commented 8 years ago

HI it will be very interesting that you add support for openstack swift some cloud providers use as a backend openstack swift so you will have implemented all of them only implementing one API.

benroeder commented 7 years ago

This might help https://github.com/ncw/swift

ncw commented 7 years ago

I'd be interested in swift support.

I notice that most of the work is done already with the hubic client. Hubic have put an oauth2 frontend on swift. The code needs another path through it to collect the service catalog from the auth URL to read the endpoint URL and the token and then it is identical.

It might be worth using my library https://github.com/ncw/swift for this as it abstracts the many different kinds of swift authentication a bit.

gilbertchen commented 7 years ago

The only thing that stopped me from building a swift backend was that I couldn't find a swift storage provider that follows the standard API. I tried to install openstack myself, but gave up after I found it was just a bunch of bash scripts and consisted of too many independent processes.

Yes, your library should be the top choice.

smerschjohann commented 7 years ago

OVHs Cloud Storage is based on Swift, so you might try it with that. Alternatively, it is quiet easy to install openstack on ubuntu using conjure-up.

OVHs offer might even be a nice alternative to their HubiC offer.

ncw commented 7 years ago

You can get a free 5GB swift account with Memset's Memstore: https://www.memset.com/cloud/storage

(Disclaimer - I work for Memset)

adevress commented 7 years ago

Ping on that, that would really be a very interesting feature :)

adevress commented 6 years ago

Hi Guys,

Just a little ping on that. Is there any recent effort on it ?

webfolderio commented 6 years ago

Hi @gilbertchen

You could use cormorant to run OpenStack Swift locally. cormorant is an open source OpenStack Swift compatible object storage server released under AGPL.

Installation

Step 1: Make sure that Java 8 or 9 is installed.

 java -version

Step 2: Download the cormorant server.

wget https://webfolder.io/cormorant/cormorant-server-1.0.0.jar

Step 3: Start the server.

java -jar cormorant-server-1.0.0.jar start --password=admin --log-appender=Console

Step 4: Check the server status.

curl --verbose http://localhost:5000/healthcheck

Credentials: Username: admin Password: admin User Interface: You could use CloudBerry Explorer to download, upload file and to create container. Compatibility with Go: cormorant is compitable and tested with ncw/swift

Please let me know if you couldn't configure the server.

gilbertchen commented 6 years ago

I'm currently busy with the new GUI version. This will be the next thing to do after the new GUI version is out.

gilbertchen commented 6 years ago

PR #353 implements a Swift backend using @ncw's library.

jbzdak commented 6 years ago

@gilbertchen Thanks for implementing this --- could you please move documentation on how to setup Swift backend from PR to this page: https://github.com/gilbertchen/duplicacy/wiki/Storage-Backends ?