From 8e3b08f08f4e06c01494d2166bd54ecf70d30ea0 Mon Sep 17 00:00:00 2001 From: Arkadiy Kukarkin Date: Mon, 1 Jul 2024 16:08:35 +0200 Subject: [PATCH] enable union backend this leverages built-in rclone features to allow backends that have one logical root (e.g. `internetarchive`) to seamlessly aggregate multiple paths into a single preparation example usage: ``` RCLONE_CONFIG_IA_TYPE=internetarchive singularity storage create union --upstreams 'ia:DuckandC1951 ia:0872_Angels_Flight_05_32_34_00' --path '' ``` this creates an implicit, ephemeral remote of the `internetarchive` type called `ia` and aggregates paths specified by `--upstreams` --- storagesystem/types.go | 1 + 1 file changed, 1 insertion(+) diff --git a/storagesystem/types.go b/storagesystem/types.go index 8ee6d2326..050b031ba 100644 --- a/storagesystem/types.go +++ b/storagesystem/types.go @@ -45,6 +45,7 @@ import ( _ "github.com/rclone/rclone/backend/storj" _ "github.com/rclone/rclone/backend/sugarsync" _ "github.com/rclone/rclone/backend/swift" + _ "github.com/rclone/rclone/backend/union" _ "github.com/rclone/rclone/backend/uptobox" _ "github.com/rclone/rclone/backend/webdav" _ "github.com/rclone/rclone/backend/yandex"