Git Product home page Git Product logo

Comments (7)

rugk avatar rugk commented on June 15, 2024 1

Yeah, you could e.g. also use this new GitHub feature:

image

from borg-cron-helper.

rugk avatar rugk commented on June 15, 2024

can I assume that most development work happens on a branch and master is typically stable?

I can't promise it definitively, but this is the goal (and currently the case), so yes.
The releases here are, however, (theoretically 😉) better tested.

does it make sense to add the git pull to the configuration scripts? I personally don't like this option because it is insufficiently modular and adds a network dependency for the backup script.

Well… you are the sysadmin, so this is totally your decision.

Personally, I would rather use a different script, possibly even with a different user/permissions, as the user, who does the backup may not have all permissions to write to these files. (okay, usually it may be root)

would you accept a PR for new system scripts for the git pull? I would only contribute scripts for systemctl since that is what I'm using.

As I indicated, I do not really want to endorse a way to self-update my scripts, or I'd prefer using the latest tagged git state…


Generally I don't think it really needs to be included in the repo here, as it may be an really easy task and done for many apps. However, it may be useful, if you do verify my git signing key when downloading the update, so that sysadmins do use this security feature.

However, yet again that is already done/implemented for/in the unit tests actually, so you can also nearly re-use this. Everything else is just a git pull and a simple (systemd) trigger.

So I doubt it is really useful to add this as a separate script, but possibly the doc can be adjusted. Or the verify script can be generalized and moved out of the unit tests to make it accessible to all users of these scripts?

from borg-cron-helper.

shankari avatar shankari commented on June 15, 2024

As I indicated, I do not really want to endorse a way to self-update my scripts, or I'd prefer using the latest tagged git state…

I'm happy to use the latest tagged git state, which I agree makes more sense anyway. However, git, unlike docker, doesn't have a built-in 'latest' tag that I can pull from. I'd have to figure out the latest tag version by doing something like this https://stackoverflow.com/questions/4277773/how-to-get-latest-tag-name

done for many apps

well, most apps publish to package managers (e.g. apt, npm, etc), so I don't think many projects need direct updating to the latest version from git. However, it is true that github is pretty popular so maybe somebody has already done this - I'll check.

At this point, I don't have time to do anything more sophisticated than setting up a timer that does git pull - I still have a bunch of setup to finish and photos to migrate before the end of the week - so I will just hack something up locally for now.

Thanks! and feel free to close the issue since I can't commit to when I can return to it.

from borg-cron-helper.

rugk avatar rugk commented on June 15, 2024

package managers (e.g. apt, npm, etc)

There is no such thing for shell scripts, and this tool here is really too unpopular to be added to distros or so… (IMHO)

I may think about it. Personally I did not even thought of auto-updates, and rather considered people do it manually for this here. But yeah… I see why it is useful 😄

from borg-cron-helper.

shankari avatar shankari commented on June 15, 2024

There is no such thing for shell scripts,

True that there is no npm equivalent for shell scripts, but distro package managers do include collections of shell scripts (e.g. https://github.com/rear/rear/, https://launchpad.net/ubuntu/+source/rear)

If you did try to get it added to debian/ubuntu, I would upvote that proposal :) That would also make the install much easier because you could automatically add the timer scripts, start them, etc instead of sysadmins adding them.

Although, ideally, this would really be part of the borgbackup package install. Maybe they would pull data from two sources to build the package? Then if I apt install borgbackup, I will get both the binary (from https://github.com/borgbackup/), and the sample scripts (from https://github.com/rugk/borg-cron-helper) to start auto backups. Because there is no point in having a backup solution that doesn't take periodic backups.

certbot does something similar - it automatically adds the .service and .timer to renew the certificate from let's encrypt.

Just some thoughts if you want to take this further. Thanks for all the work you have done so far, and good luck!

from borg-cron-helper.

rugk avatar rugk commented on June 15, 2024

If you want to package this here for any distro, feel free to do so… (I am not involved in Debian/Ubuntu packagers) Until now, I thought, it was not really popular/useful enough, as it "still" only consists of some wrapper scripts around borgbackup, basically…

from borg-cron-helper.

dsteinkopf avatar dsteinkopf commented on June 15, 2024

Note from me as "user": I am happy the way it is. From time to time a check the commit log and manually do a git pull.

BTW. Thank you for these helper scripts!

from borg-cron-helper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.