How to move a file system ducklake to another location? #549
Replies: 2 comments 4 replies
-
|
Maybe a better solution would be to create a new ducklake in the folder that you wanted, then attach both and copy the data from one to the other. |
Beta Was this translation helpful? Give feedback.
-
|
I've managed to move a file system ducklake (to a different drive) using these steps:
This works because all of the (relative) file paths are accessed relative to the path in ducklake_metadata: see https://ducklake.select/docs/stable/duckdb/usage/paths. It will not change anything for files with absolute paths - they will continue to be accessed at whatever path is stored in the catalog. If doing this it's probably a good idea to create a copy of your catalog database at the same time as you copy the data, and then overwrite the data_path in the copy. Note: the caveat |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using ducklake against the filesystem and am wondering what the correct way is to move the ducklake with its data to a different location on the filesystem.
My intuition was that this should easily be possible but as it turns out the absolute path of the data files gets baked into the ducklake metadata.
So, when I moved my entire ducklake from folder A to folder B, and then read against it, I was presented with this error:
I took a look at the
OVERRIDE_DATA_PATHwhich seems to come with some strings attached:https://ducklake.select/docs/stable/duckdb/usage/connecting
Generally, when permanently moving a ducklake I suppose I would actually want to also permanently change the meta data entries.
Is there a recommended way of doing this?
Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions