Thread
#lakefs-for-beginners
    א

    איתי אריאל

    6 days ago
    Hey, hi everybody! I have a question is there a way to pull a specific commit in branch using lakefs?
    Itai David

    Itai David

    6 days ago
    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
    א

    איתי אריאל

    6 days ago
    Hey Itai, thanks for the answer, Im asking if there is a way to pull that commit files without reverting to it
    Itai David

    Itai David

    6 days ago
    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?
    א

    איתי אריאל

    6 days ago
    yes download locally a specific commit
    Itai Admi

    Itai Admi

    6 days ago
    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.
    א

    איתי אריאל

    6 days ago
    thanks
    Ariel Shaqed (Scolnicov)

    Ariel Shaqed (Scolnicov)

    6 days ago
    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.