Skip to content

How to change remote storage of a datachain #1028

@luczeng

Description

@luczeng

Hello, let's say I have an image datachain created from data on remote A and stored on a dataset.

dc = DataChain.from_storage("A", type = "image").filter(C('file.path').glob("*.png")).save('image_dataset')

Lets say I pass the datachain to someone else so they can load it (eg from another server):

dc = read_dataset('image_dataset')

However this person only has access to remote B where the data from remote A has been duplicated. Is there a "datachain way" to export the data from B? I could probably do this by manipulating the columns from the dataset, but I guess there's an easier way to do it. I mean something like:

dc.to_storage('some_folder', from_remote='B')

NB: some functionality similar to dvc remote modify or add

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions