Hey, hi everybody! I have a question is there a wa...
# help
u
Hey, hi everybody! I have a question is there a way to pull a specific commit in branch using lakefs?
u
Hi @איתי אריאל . And thank you for this question You can usually get a specific commit by specifying its commit ID:
Copy code
lakectl show <lakefs://myrepo> --commit <COMMIT_ID>
The commit ID can be found using the log command:
Copy code
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
Hey Itai, thanks for the answer, Im asking if there is a way to pull that commit files without reverting to it
u
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
yes download locally a specific commit
u
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.
u
thanks
u
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.