From a9d343852ec27830a79436650684238eb0f1c8d4 Mon Sep 17 00:00:00 2001 From: Arkadiy Kukarkin Date: Wed, 10 Jul 2024 20:34:31 +0200 Subject: [PATCH] [DRAFT] enable union backend (#439) 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 8ee6d232..050b031b 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"