scm-backup icon indicating copy to clipboard operation
scm-backup copied to clipboard

Check Git LFS support

Open christianspecht opened this issue 6 years ago • 5 comments

As suggested here:

  • create a test repo with a large file
  • set up Git LFS
  • check whether SCM Backup is able to backup the repo, and if all large files are actually included in the backup

christianspecht avatar Oct 04 '18 20:10 christianspecht

https://help.github.com/articles/duplicating-a-repository/#mirroring-a-repository-that-contains-git-large-file-storage-objects

christianspecht avatar Nov 04 '18 18:11 christianspecht

Git LFS Specification

Additional thoughts:

Apparently, if you clone a repo with LFS objects and your local Git client has LFS not enabled, it just pulls the pointer files, but not the actual large file.

So when this happens while backing up with SCM Backup, it should detect if a repo contains LFS objects, and warn the user / throw an exception / not even start backing up (?) when LFS is not enabled in the local Git installation.

christianspecht avatar Nov 13 '18 21:11 christianspecht

I just checked it, and git fetch seems to ignore LFS. So Backing up repositories with LFS currently ignores all files in LFS.

A git lfs fetch {url} after the fetch loads the LFS data. What would be the best way to integrate this feature?

DirkHeinke avatar Feb 03 '21 16:02 DirkHeinke

@christianspecht I have managed to make LFS working with the forked version. But it should be merged into this repo.

igor-gorjanc avatar Jul 15 '24 11:07 igor-gorjanc

Sorry for the delay, I was on vacation first and then sick.

  • Which forked version do you mean? The one from evolu1's PR, or my fork of it (which is also linked in the PR)?
  • Did you make any additional code changes, or did it work as-is?
  • We probably need documentation: If you read the conversation in evolu1's PR, you see that we weren't able to create a test repo with LFS files, backup it with the forked SCM Backup version and restore the LFS files. And as I already said there, I have zero experience with Git LFS and that didn't change in the meantime, I still have zero experience.

christianspecht avatar Aug 05 '24 21:08 christianspecht