util

util / BackblazeDownload / 0.1.0

README.md

Overview

Download a file from your Backblaze account which has been preconfigured via util/BackblazeConfig

Usage

Input

ParameterDescription
bucket_namename of a Backblaze bucket you can access
remote_filepath and filename to get from the Backblaze bucket
fileData URI where the file should be placed
{
	"bucket_name": "somebucket",
	"remote_file": "somefolder/somefile.txt",
	"file": "data://util/somecollection/somefile.txt"
}

Input: using a specific namespace

util/BackblazeConfig supports storing different configuration files, referred to as namespaces

ParameterDescription
namespaceAlphanumeric namespace defined in via BackblazeConfig
bucket_namename of a Backblaze bucket you can access
remote_filepath and filename to get from the Backblaze bucket
fileData URI where the file should be placed
{
	"namespace": "staging",
	"bucket_name": "somebucket",
	"remote_file": "somefolder/somefile.txt",
	"file": "data://util/somecollection/somefile.txt"
}

Output

The Data URI of the file which was created (identical to the "file" parameter you passed in

data://util/somecollection/somefile.txt