https://lakefs.io/ logo
Title
j

Jonas

02/22/2023, 9:30 AM
Is it possible to rename repositories? I was not able to do that via the ui
j

Jonathan Rosenberg

02/22/2023, 9:40 AM
Hi @Jonas, You cannot currently rename repositories in lakeFS. You can of course delete and recreate the repo with you preferred name…
j

Jonas

02/22/2023, 9:49 AM
That's not really an option since we would lose their history doing so, don't we?
j

Jonathan Rosenberg

02/22/2023, 9:54 AM
true
o

Oz Katz

02/22/2023, 9:58 AM
it is possible to export the repository's commit history, branches and pretty much everything except for uncommitted changes into the repository's storage namespace, and then import it from a new repository
:jumping-lakefs: 1
basically, do: 1.
lakectl refs-dump
(see docs) 2. create a bare repository that has no initial branch or commit (see docs) using the same storage namespace as the original repository 3. `lakectl refs-restore` (see docs) on the new bare repo, to restore the branches, commits, etc. 4. test and make sure everything works 5. delete the original repository 🙂 6. win
j

Jonas

02/22/2023, 10:12 AM
Ah that looks great! Thank you! 🙂