christianspecht / scm-backup

Makes offline backups of your cloud hosted source code repositories
https://scm-backup.org/
GNU General Public License v3.0
59 stars 20 forks source link

Check Git LFS support #21

Open christianspecht opened 5 years ago

christianspecht commented 5 years ago

As suggested here:

christianspecht commented 5 years ago

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

christianspecht commented 5 years ago

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.

DirkHeinke commented 3 years ago

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?

igor-gorjanc commented 1 month ago

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

christianspecht commented 1 month ago

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