https://lakefs.io/ logo
Title
u

איתי אריאל

09/22/2022, 10:07 AM
Hey, hi everybody! I have a question is there a way to pull a specific commit in branch using lakefs?
i

Itai David

09/22/2022, 10:34 AM
Hi @איתי אריאל . And thank you for this question You can usually get a specific commit by specifying its commit ID:
lakectl show <lakefs://myrepo> --commit <COMMIT_ID>
The commit ID can be found using the log command:
lakectl log <lakefs://myrepo/main>
These are examples assume a repository named
myrepo
and a branch named
main
It also uses our CLI tool -
lakectl
, but the commit ID can be used to access a specific commit in all other methods too Here's an example of reverting to a specific commit, from our docs
u

איתי אריאל

09/22/2022, 10:35 AM
Hey Itai, thanks for the answer, Im asking if there is a way to pull that commit files without reverting to it
i

Itai David

09/22/2022, 10:37 AM
Of course - the revert was used just as an example. You can use the commit ID with other operations too. What do you mean by pull? Downloading locally?
u

איתי אריאל

09/22/2022, 10:37 AM
yes download locally a specific commit
i

Itai Admi

09/22/2022, 10:47 AM
Hey @איתי אריאל - currently we only have the option for recursive upload, not download. The issue to add a
sync
capability (much like the one
aws s3
has) is tracked here and should be started roughly next week. It will allow to download any lakeFS reference (or parts of it) including a commit to a local location.
🙌 1
u

איתי אריאל

09/22/2022, 10:49 AM
thanks
a

Ariel Shaqed (Scolnicov)

09/22/2022, 10:51 AM
Usually when I want a recursive download I just use
aws s3 cp --recursive
. The nice thing about the s3 gateway is that all the cool toys work with it.