Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

repo backup and restore with git-lfs files

sjamisorc January 28, 2021

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?

1 answer

1 accepted

0 votes
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2021

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
atlassian, atlassian community, job interviews, interview tips, career advice, interview preparation, job search, interview experiences, hiring process, atlassian careers, community discussion, interview best practices

Interview Tips & Pet Peeves ✍️

Join the discussion on interview best practices and common pitfalls. Share your experiences and learn from others in the Atlassian Community.

Share you experiences!
AUG Leaders

Atlassian Community Events