Comments (5)
Hi, What use-case are you thinking of?
Not sure I can see the benefit whilst it's not listening on a port, like a webserver.
from soba.
I'm not sure if it can be done, but I'd love to know if the service/"cronjob" is still running. Not sure if it always exists with an error code if there is an issue?
If it's not really necessary, feel free to close ^^
from soba.
Makes sense. I run the docker image on a Synology NAS that you can configure to Auto Restart if the process ends.
One approach to running with cron is to use flock: https://serverfault.com/a/82863/463326. You could set the cron to run every minute (as in the serverfault example) so it automatically restarts if it fails and can check the existence of the lock file to know if it's running.
soba will exit with 1
if there's an error and 0
if you run it once (without a backup interval) and it succeeds.
from soba.
Oh, sorry, I think I phrased that the wrong way.
I'm also using the docker image on a Synology NAS (together with Portainer, but that's not important I presume) and I just set the GIT_BACKUP_INTERVAL to a certain hours value (that's what I meant with "cronjob").
However, I think you're right, just being on the lookout for that 1
error code is probably enough. Seems like I didn't think this through.
Thanks a lot for your extensive answer anyway! I love this image, keep up the awesome work <3
from soba.
No problem. Thanks for the feedback!
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
- Compare bundle with latest commit to reduce backup time HOT 8
- How to restore/open backed-up repositories? HOT 2
- Handle provider API issues HOT 1
- 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.