Where Are Label Files Stored Within BarTender Cloud?
Question
Where are the files stored in the cloud? What is the storage structure?
Applicable to
- BarTender Cloud
- Automation subscription
Answer
A modified version of Librarian handles all the file storage on the cloud. Each tenant space has its own Librarian space, and the size is determined by the subscription.
By default, Librarian space can be broken up into two main spaces:
- Main - what is visible to the user and seen in the file manager
- $temp - temporary storage, invisible, and generally used by the REST API (usually the Action API)
Here's a basic rundown of the two spaces
Main space | $temp space |
---|---|
|
|
In addition, users can create their own user defined Spaces and manage access to them. For more information on Spaces, check out How to Use Spaces in BarTender Cloud.
Files and Folders
Files are the main occupants of both Librarian spaces. In addition to containing all the BarTender information, they also have their own attachments. Attachments are information and details connected to a certain label and stored with it. Attachments can include (but are not limited to):
- Metadata - who made the file, when, etc
- Tags - category tags like the ones you see in the Document Assistant
- Preview of the label
Folders can be added to both spaces and can contain files, folders, or both. Folders are not required in Librarian space but are good for organizing files.
Files and folders have additional attachments to them that include permissions and restrictions. Both have the following restrictions which can be set:
- Read
- Write
- Delete
- Purge
In addition to those 4 permissions, folders have a "List" permission, which lists the contents of a folder.
Main Space
Main space is the primary storage space and the only one you can see. When you open the file manager, all the files and folders here are stored in the main space. This space is generally managed by the file manager via the web interface but can also be managed using the Librarian API.
Main space is versioned, so each revision of a file is stored in this space as well, much like on-prem Librarian has. These versions can be referenced via the API.
$Temp Space
$temp space behaves very similarly to how $temp on a PC or the temporary storage on an Integration would work. This space is invisible and is only accessible using an API call. The primary user of the $temp space is the Action API and any files and folders within $temp can be accessed using the Librarian API.
Unlike the main space, $temp space is versionless, and files and folders simply exist as they are.
At the moment, there is no garbage collector in $temp space. This means that files in $temp space stay there until they are manually deleted. A garbage collector is planned for the future, but at the moment, users must clean up their own $temp litter.