I have many repos in Bitbucket cloud and make a local backup using git clone --mirror but that does not capture the git-lfs files.
How do I backup the git-lfs files and restore them in addition to the mirrored repo backup?
Hi @sjamisorc ,
You can fetch lfs objects in a mirror clone with the command
git lfs fetch --all
The command needs to be executed inside the directory of the mirror clone.
For restoring, after you push the mirror repo, you can do
git lfs push --all <repo-url>
Kind regards,
Theodora
Join this webinar on June 25/26th to learn how to build secure CI/CD workflows using Bitbucket Pipelines and get tips from our own engineers on how to speed up builds and operate at scale.
Register todayOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.