The Nextcloud Connector allows the user to backup data from a specific Nextcloud instance and transfer all the files with the file structure to Storj network.
If you haven't yet, create a Tardigrade account before following the rest of the tutorial.
The connector requires the latest version of Go to be installed. Once Go is installed, clone and build the connector:
git clone https://github.com/storj-thirdparty/connector-nextcloud.gitcd connector-nextcloudgo build
Confirm the install was successful by viewing the help:
$ ./connector-nextcloudconnector-nextcloud - Back-up your Nextcloud data to the decentralized Storj network.Usage:connector-nextcloud [command]Available Commands:help Help about any commandstore Command to upload data to storj V3 network.version Prints the version of the cliFlags:-h, --help help for connector-nextcloudUse "connector-nextcloud [command] --help" for more information about a command
Configure the connector for your instance. The important files are in the
./config sub-directory located within the connector folder.
nextcloud_property.json - contains configuration items for accessing your Nextcloud instance. Configure appropriately:
storj_config.json - contains Storj network information. Configure appropriately:
Once configured, run the connector:
$ ./connector-nextcloud storeRead Nextcloud configuration from ./config/nextcloud_property.jsonURL http://storj.your-nextcloud-instance.com/Username adminPassword your-passwordRead Storj configuration from ./config/storj_config.jsonAPI Key : your-storj-or-tardigrade-api-keySatellite : us-central-1.tardigrade.io:7777Bucket : nextcloud-demoUpload Path : backup1/Serialized Access Key :Connecting to Storj network.Successfully connected to Storj network.Connecting to Nextcloud...Initiating back-up.Uploading backup1/Documents/Example.md to nextcloud-demo.Please wait while the upload is being committed to Storj.Uploading backup1/Documents/Nextcloud flyer.pdf to nextcloud-demo.Please wait while the upload is being committed to Storj....Back-up complete.$
The Storj/Tardigrade Nextcloud connector uses the Nextcloud WebDAV capabilities to stream data into the Storj protocol.
You can find the source and additional details at https://github.com/storj-thirdparty/connector-nextcloud