Comments (8)
I've just pushed a new release that's got a hidden feature (whilst testing). It works exactly as I put in the opening comment, and speeds things up a lot. If you get a chance to try it, simply add an environment variable: SOBA_DEV=true and let me know how you get on.
I'd love to get a GIT expert to call out any downsides to the approach, so will do some research and maybe put a post out on stackoverflow.
Btw, I've already noticed some spurious, but harmless, output that needs fixing.
from soba.
So far, it looks like a positive move: https://stackoverflow.com/questions/74281792/git-comparing-local-bundle-with-remote-repository-using-refs-only.
I've got some tidying up to do, and some tests to write, but will try and get a new beta out this week.
from soba.
Thanks for moving this to a separate topic - yes, this is precisely what I was referring to!
I imagine some users would still feel 'safer' with the current way of operation, so this comparison mechanic could probably be toggled with an env var?
from soba.
Seems to be working really well and yes, it has greatly sped things up (the complete run came down to 8 minutes) - also, as far as I can tell it didn't falsely skip any modified repos.
from soba.
Thanks for the feedback! I'll do some more of my own testing to check it works as hoped, and put the question out to the experts on any potential gotchas.
from soba.
Just a heads-up.
I've pushed a new beta that replaces the SOBA_DEV trigger with:
- GITHUB_COMPARE
- GITLAB_COMPARE
- BITBUCKET_COMPARE
each supporting a value of either 'refs' or 'clone' where 'clone' is the default if not specified.
refs = check latest bundle refs (if existing bundle exists) against remote refs, without cloning
clone = clone the remote, bundle it, and compare latest bundle size and checksum with local (if existing bundle exists)
The reason for defaulting to clone is that someone's pointed out that using refs alone doesn't consider the remote could be shallow (older commits removed). I doubt it's a common situation, but don't want to make any assumptions when it comes to backups.
I'm leaving my own setup running for a few days to see if there are any real world issues I've not considered. Hope to get the final release out this week.
from soba.
Awesome, looking forward to it! :)
from soba.
Now released. Thanks.
from soba.
Related Issues (15)
- Add concurrency HOT 1
- Handle pagination of groups and projects in GitLab HOT 1
- Ability to specify the GitLab instance URL HOT 21
- No Backup for Gitlab Repos that I am not the Creator HOT 5
- How to restore/open backed-up repositories? HOT 2
- Handle provider API issues HOT 1
- Add docker healthcheck HOT 5
- Add Kubernetes setup instructions for running with cron HOT 3
- failure to list bitbucket repos HOT 1
- Using the Bitbucket provider HOT 4
- Bitbucket provider only returns the first page (10 repositories) HOT 4
- Access to Private Organization Repos? HOT 5
- Kaspersky detects VHO:Trojan.Win32.Sdum.gen in soba_1.1.1_windows_amd64.tar HOT 1
- GitLab Group projects do not get backed up HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from soba.